Looking for a standard mathematical function that returns 0 if x = 0 and a constant k when x <> 0

39 views Asked by At

I am looking for a standard mathematical function f(x) that returns 0 if x = 0 and that returns a constant k when x is different from 0. I tried the elevator function but it does not respond to my request. Do you have any idea ?

Thanks in advance

0

There are 0 answers