Plotting a line without negative values Is it possible to have a line a equation of sine without negative values. Not the same as sin(abs(x)) as negative values would be reflected in the x-axis. I'm looking for an equation where negative values of sin are converted to 0, looking not too dissimilar to a toblerone. 

What about $f(x)=\max(\sin(x),0)$?

Edit: The function given by @RideTheWavelet in his comment is precisely this one, stated in different form.
