Evaluating booleans: evalb

### 5.1.7 Evaluating booleans: evalb

The Maple command evalb evaluates a boolean expression (see Section 5.1). Since Xcas evaluates booleans automatically, it includes a evalb command only here for compatibility and is equivalent to eval (see Section 5.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:

  1

- Input:
  evalb(sqrt(2)>1.42)
  or:
  sqrt(2)>1.42
  Output:

  0