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.
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.
The results are different based on assumption.
Keyword: solve and modifier real
1. Write an equation and solve it.
2. Solve the equation again assuming x is real.
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.
2. Evaluate the equation assuming x is integer.
3. Evaluate the equation assuming x is even.
4. Evaluate the equation assuming x is odd.
The results vary based on assumption. Observe that result for even and odd combined result in the integer.