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