1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How does one represent this in math

  1. Oct 31, 2008 #1
    How does one represent this in math....

    1. The problem statement, all variables and given/known data

    How does one represent the following in mathematical notation:

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

    2. Relevant equations

    3. 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....
  2. jcsd
  3. Oct 31, 2008 #2


    User Avatar
    Science Advisor
    Homework Helper

    Hi wildman! :smile:

    How about using min or max (or is it inf or sup :rolleyes:)? :wink:
  4. Oct 31, 2008 #3


    User Avatar
    Staff Emeritus
    Science Advisor

    Re: How does one represent this in math....

    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.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?