Defining and Evaluating a Variable on One Line
|
Mathcad 14 allows you to combine numeric definitions and evaluations into one statement. What you used to have to do in two regions in earlier versions of Mathcad can now be done in one region with Mathcad 14: |
|
In addition to providing a more compact format for evaluating a definition, this allows you to bind the variable (b, above) to the result of the definition (in this case, 8), rather than to the definition itself. |
|
Symbolic Evaluation of Results of Functions |
|
Some functions, such as regress or var, can not be evaluated symbolically. When evaluated, the symbolic processor returns the expression, rather than a result: |
|
In Mathcad 14, you can instead bind the numeric result of var to the variable v, which gives you a more meaningful result: |
|
You can also use this notation to insert an intermediate value in an explicit result. In Mathcad 13, you needed to bind the intermediate symbolic evaluation to a numeric result with a complicated evaluation: |
|
Mathcad 14 allows you to write this example much more simply, as: |
|
One thing to keep in mind, though, is that you're binding a numeric result, which may be a rounded value. This can impact the results of symbolic calculations: |
|
This occurs because a is bound to the numeric value of e, which Mathcad rounds to 17 digits of precision. In the symbolic evaluation, Mathcad uses the full symbolic precision of e, which yields a more accurate result.
Download the Mathcad file by right-clicking and saving the file as XMCD. (Mathcad version 14). You must have Mathcad installed on your computer before you can view this file.
Was this article interesting? Let us know.
|
[PRINTER FRIENDLY VERSION]
|
|
|  |
 |
 |
|