To solve optimization problems I have seen this:
Is there a more elegant way to do this with alternative conditional expressions? Is there something equivelant to if, elseif, else that you'd see in Matlab, Maple, RStudio, Ptyhon, etc?
To solve optimization problems I have seen this:
Is there a more elegant way to do this with alternative conditional expressions? Is there something equivelant to if, elseif, else that you'd see in Matlab, Maple, RStudio, Ptyhon, etc?
If[a, b, If[c, d, e]]? WouldWhich[a, b, c, d, True, e]qualify? – Carl Woll Oct 16 '18 at 17:31Which[]andSwitch[]would be of interest. Have you seen this? – J. M.'s missing motivation Oct 16 '18 at 17:33