Coding Different Trigonometric Functions in Processing

Thanks for your replies, I did search the internet, but I never really found a way to put variables in it, I probably didn’t look hard enough. @paulgoux should I do this?:

float e = exp(1.0)
1/(1+pow(e, x);

I don’t know what x should be, is it the input?
I want the sigmoid to go from 0 to 1, because it would find the probability, so I thought that the 1 in (1+e^x) would be 0, but I don’t know if I am right.