Error, (in ...) cannot determine if this expression is true or false: ...
|
Description
|
|
Maple cannot determine whether something is true or false in an if statement or while clause.
|
|
Examples
|
|
A typical occurrence happens when a procedure that requires numeric arguments is called with symbolic arguments:
>
|
|
| (2.1) |
>
|
|
>
|
|
>
|
|
Solution:
Maple evaluates the inputs to a procedure such as plot before it calls the procedure, resulting in being called with the symbolic argument . Since has not yet been assigned a value, Maple cannot determine if is less than . You can either delay the evaluation of the input using unevaluation quotes, or you can supply the arguments with operator form. For details, see uneval.
>
|
|
>
|
|
>
|
|
| (2.2) |
>
|
|
| (2.3) |
>
|
|
| (2.4) |
>
|
|
| (2.5) |
|
|
Download Help Document
Was this information helpful?