My math classes are mostly a blur at this point, so I have a (hopefully) simple question.
Answers in mathematical formulas / javascript / python / any programming language are fine.
I want to be able to provide the value of X, Ymax, and a coefficient for the steepness of the curve.
When X = 100 (percent), Y must be = Ymax
When X = 0, Y must be = 0
or in code
Code
function getValue(x, ymax, steep) {
return Math.pow(ymax, x / 100);
}
Of course this one doesn't adjust for steepness though.
The red line on the graph is another idea, of maybe having no steepness control but rather the curve being bound to three points, so that I can have more control over when the curve gets really sharp.
If you can answer the latter, even better.
This post was edited by laztheripper on Nov 30 2020 04:47pm