Symbolics > Working with Symbolics > Working with Variables > Example: Displaying Explicit Values
  
Example: Displaying Explicit Values
1. In a worksheet, define the following variables:
Click to copy this expression
Click to copy this expression
Click to copy this expression
2. Evaluate the following expression symbolically using the keyword explicit with the variables a, b, and d. PTC Mathcad replaces each variable you specify with its assigned value.
Click to copy this expression
3. Remove the variable a after explicit. For any variable in the expression that you omit or that is undefined, PTC Mathcad returns the variable name.
Click to copy this expression
4. Change the definition of d, so that it is an expression containing other variables with assigned values.
Click to copy this expression
5. Evaluate d symbolically with the keyword explicit and the variable d. PTC Mathcad substitutes d in terms of the variables a and b, not their assigned numerical values.
Click to copy this expression
6. To return the numerical values, you must request all intermediate names be substituted.
Click to copy this expression
7. To substitute the evaluated value of d, add a symbolic evaluation operator after the definition of d, and then perform the explicit calculation.
Click to copy this expression
Click to copy this expression
Suppressing the Value of a Variable
You can use explicit to force PTC Mathcad to temporarily ignore the assigned value of a variable.
1. Define the following variable:
Click to copy this expression
2. Factor the following polynomial:
Click to copy this expression
PTC Mathcad first substitutes 5 for x in the polynomial to get 12, and then it factors 12 over the integers.
3. Use the keyword explicit before factor to suppress the value of x in a single symbolic evaluation.
Click to copy this expression
PTC Mathcad factors the polynomial without substituting x = 5.