Vous êtes sur la page 1sur 4

CM3450 Summary of Part 1 1.

MS Word a) Use keystroke for input of equations b) Equation numbering and chapter numbering Tips: For a refresher, and symbol tables, link to http://www.chem.mtu.edu/~tbco/cm416/MSWordEquationEditor.html Save in Word 2007 format, otherwise equations will changed to graphic blocks which are not editable. May need to print to PDF format first, in some cases.

2. Excel a) Naming of cells and matrices Tips: Avoid names such as A1. Instead can use A_1. Do not forget to hit enter, or else it is not registered For more complete editing capabilities, select [Formulas] [Name Manager] To name matrices, select the group first before naming the matrix

b) Data Tables Tips: Be careful of which affects the rows or columns For automatic legend generation, need to hide/unhide the first row below text headings

c) Matrices Tips: Use [CTRL]-[SHIFT]-[Enter] when applying matrix functions such as MMULT, MINVERSE, TRANSPOSE When putting complicated formulas, include spaces for clarity. When using parenthesis, include a pair of left/right parenthesis before input

d) SOLVER Tips: Always note whether you are doing minimization, maximization or solving Can use names of matrices/arrays during specifications of constraints

e) Functions Tips: Make sure only one copy of the function is present in a workbook Test functions using different cases The Log() function in VBA is natural log, but in Excel worksheet it is Ln().

3. MathCad a) Basics Tips: For a refresher, and symbol/units tables, link to http://www.chem.mtu.edu/~tbco/cm3450/McadBasics.pdf Temperature units like centigrade and Fahrenheit, use [CTRL]-[Shift]-[x], followed by [CTRL]-[u]. Short cut for symbols [CTRL]-[g] [Ins] to toggle where insertion is front of tail Use [spacebar] or cursors to collect parts of the equation Take care of different type of equality: [:] vs [CRTL]-[=] Take care of subscripts: [.] vs [left bracket] Plotting with unit: divide by the units Avoid using the whole worksheet, e.g. do not use the right side of the page! Try to change fonts so that you can immediately detect when it is text or variables.

b) Polyroots() vs. Roots() Tips: Polyroots() may need symbol evaluation to get coefficients, i.e. [CTRL]-[SHIFT]-[.] Root() need initial guesses

c) Given Find Tips: - Make sure Given is not a text input - Only equalities, greater than, less than, etc. should be incluede in the Given/Find block. Avoid function or variable definitions. - Each side of the equations or relations should be able to be numerically evaluated, i.e. initial guesses, parameters should be defined above the Given marker. - In Find(a,b,) , the variables a, b, are the variables MathCad is allowed to adjust in trying to satisfy the objectives. - To parameterize, use Soln( par1, par2, ) = Find(a,b,) - If multivariable solution is required, can use an array, i.e.\ use [CTRL]-[m] - Initial guesses need to be chosen carefully. Sometimes, a plot would help to determine where the solution lies. Otherwise, other important information may be needed. - Units are allowed. However if arrays are needed, then non-dimensionalization is required. d) cspline() and interp() Tips: Use only if data are reliable, otherwise use regression Can be used to make data tables into a continuous function to be used in other parts of solution

e) genfit(), minerr() and corr() Tips: use for nonlinear regression. minerr() with Levenberg-Marquardt often used for multiple nonlinear regression corr() needs vectorization, i.e. use [CTRL]-[-]

f) derivatives and integration Tips: symbolic differentiation and integration quite useful to prove analytical solutions of differential equations

both can be used in Given/Find blocks.

g) Odesolve() and rkadapt() Tips: Odesolve() is simpler but not amenable to units Rkadapt() more complicated but easier to include units Parameterization is quicker in rkadapt() When implementing in situation where independent variable is in the denominator such as in cylindrical or spherical coordinates, use 10 instead