Download Maple User Manual - University Information & Technology Services

Transcript
362 • 8 Maple Expressions
See also Numerically Computing a Limit (page 176) and Numeric Integration (page 185).
Evaluating Complex Expressions
To evaluate a complex expression:
• Use the evalc command.
If possible, the evalc command returns the output in the canonical form expr1 + i expr2.
In 2-D Math input, you can enter the imaginary unit using the following two methods.
• In the Common Symbols palette, click the i or j item. See Palettes (page 22).
• Enter i or j, and then press the symbol completion key. See Symbol Names (page 29).
>
>
In 1-D Math input, enter the imaginary unit as an uppercase i (I).
> evalc(2^(1 + I));
Evaluating Boolean Expressions
To evaluate an expression involving relational operators (
and
,
,
,
,
,
):
• Use the evalb command.
Note: In 1-D Math input, enter
,
, and
using the <>, <=, and >= operators.
The evalb command uses a three-valued logic system. The return values are true, false,
and FAIL. If evaluation is not possible, an unevaluated expression is returned.