MmaTranslator[Mma][Which] - evaluate a specified test and return the value
|
Calling Sequence
|
|
Which(arguments)
|
|
Parameters
|
|
arguments
|
-
|
Maple translation of the Mathematica command arguments
|
|
|
|
|
Description
|
|
•
|
The Which command evaluates a specified test and returns its value corresponding to the first on the yields TRUE.
|
|
|
Examples
|
|
>
|
|
>
|
h:= proc (x) options operator, arrow; Which(x < -2, x/3, x > 3, x^2, true, 0) end proc;
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
Alternatively, you can use the FromMma command with the evaluate option specified.
>
|
|
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?