Hi,
Is there a function which is very similar to a sine function, except that it's strictly positive ie the negative part of the sine function is reflected along the x axis? It must also be varying smoothly.
To get a strictly positive sine function, I can just use abs(sin(x)), abs = absolute. But then there's a non-smooth sudden change.
Another way is to use (sin(x))^2, but the entire function is now much sharper. I just want it to be different from the original sine function at the non-smooth part.
Thanks!
Is there a function which is very similar to a sine function, except that it's strictly positive ie the negative part of the sine function is reflected along the x axis? It must also be varying smoothly.
To get a strictly positive sine function, I can just use abs(sin(x)), abs = absolute. But then there's a non-smooth sudden change.
Another way is to use (sin(x))^2, but the entire function is now much sharper. I just want it to be different from the original sine function at the non-smooth part.
Thanks!