How does one represent this in math

  • Thread starter Thread starter wildman
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
wildman
Messages
29
Reaction score
4
How does one represent this in math...

Homework Statement



How does one represent the following in mathematical notation:

if(x >= a) then y = x-a
else x=0


Homework Equations





The Attempt at a Solution


Just y= x-a will not do it because it becomes negative when x is less than a and that is not what I want...
 
Physics news on Phys.org


I'm not sure what you kind of notation you want. I would write that as either
[tex]y= \left(\begin{array}{c} x- a if x\ge a \\ 0 if x> a\end{array}\right[/tex]

Or as y= H(x-a)(x-a) where H(x) is the Heaviside step function.