Looking for code implementation of following exponential ramp function..

302 Views Asked by At

I'm not a mathematician, but a software developer. So I am much more comfortable reading code than I am math notation.

Could someone help provide some code for the following:

How would I create a exponential ramp function from 0,0 to 1,1 with a single value to explain curvature?

I don't mind which language (but would prefer C# or javascript), and would certainly prefer the usage of built in math functions.

Looking for an implementation of


// x is a value between 0 and 1.

// y is a value between 0 and 1.

float GetY(float x, float curvature)


Any guidance would be much appreciated, Regards, Daniel.