6.1.7 Evaluating booleans: evalb
The Maple command evalb evaluates a boolean expression (see
Section 6.1). Since Xcas evaluates booleans
automatically, it includes a evalb command only here for
compatibility and is equivalent to eval (see
Section 6.12.1).
-
evalb takes one argument:
bool, a boolean expression.
- evalb()bool) returns 1 if
bool is true and returns 0 otherwise.
Examples.
-
Input:
evalb(sqrt(2)>1.41)
or:
sqrt(2)>1.41
Output:
- Input:
evalb(sqrt(2)>1.42)
or:
sqrt(2)>1.42
Output: