Does anyone familiar with a convenient way in Mathematica to define a case function such as:(adsbygoogle = window.adsbygoogle || []).push({});

[itex] y(x)=\left\{\begin{array}{c} x \\ -x\end{array}\begin{array}{c} x>0 \\ x<0\end{array}

\right. [/itex]

?

Thankes,

Omri

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Case function in Mathematica

Loading...

Similar Threads for Case function Mathematica |
---|

MATLAB Coding up the step function |

Bi-exponential function fitting in Origin Lab SW |

Mathematica Looping through vectorized functions for a piecewise solution |

Mathematica Cannot do the integral of the Hyper-geometric function? |

Mathematica Cannot Plot This Function in Mathematica |

**Physics Forums | Science Articles, Homework Help, Discussion**