Forums > Javascript

Change steepness of an inverse exponential curve…

August 24, 2013 | 10:41 am

Hi all,

I’m trying to change the steepness of an inverse exponential curve, whilst keeping (0,1) and (1,0) as fixed points, by changing the variables in the formula y = (a/(x+b))-b. Two examples of correct curves would be a=1, b=~0.618, and a=2, b=1. I need to know how to find b in terms of a, so that I can adjust the curve dynamically with a single input.

Could somebody please help me with this?

Thanks a lot!

Yeter


August 24, 2013 | 2:36 pm

oops, just saw which subforum we’re in.


August 24, 2013 | 7:01 pm

Try a=b*(b+1); the user could enter b, and you could calculate a with that formula. The closer b gets to 0, the more extreme the curve.


August 25, 2013 | 1:25 am

Perfect! Thank you.


Viewing 4 posts - 1 through 4 (of 4 total)