Symbolics > Working with Symbolics > Example: Keywords and Modifiers Combination
Example: Keywords and Modifiers Combination
Keyword assume with modifiers real and complex
1. Write and evaluate expressions using rectangular assuming x is real and complex.
Click to copy this expression
Click to copy this expression
The results are different based on assumption.
* 
x is real by default
Keyword: simplify for values greater than 0
1. Write and simplify the expression assuming values less than or equal to 0 and greater than 0.
Click to copy this expression
Click to copy this expression
The results are different based on assumption.
Keyword: solve and modifier real
1. Write an equation and solve it.
Click to copy this expression
2. Solve the equation again assuming x is real.
Click to copy this expression
The result is filtered and displays only real values of the solution.
Keyword assume and modifiers even and odd
1. Write an expression and solve it using solve.
Click to copy this expression
2. Evaluate the equation assuming x is integer.
Click to copy this expression
3. Evaluate the equation assuming x is even.
Click to copy this expression
4. Evaluate the equation assuming x is odd.
Click to copy this expression
The results vary based on assumption. Observe that result for even and odd combined result in the integer.
Was this helpful?