Defining a Case Function in Mathematica: A Convenient Solution?

  • Context: Mathematica 
  • Thread starter Thread starter omri3012
  • Start date Start date
  • Tags Tags
    Function Mathematica
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
omri3012
Messages
60
Reaction score
0
Does anyone familiar with a convenient way in Mathematica to define a case function such as:

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

Thankes,
Omri
 
Physics news on Phys.org
Thankes,
It's very helpful :)