Obscure practical math problem
Ive spent all day on this, driving me nuts, Im hoping someone has a simple solution.
I have a sigmoid curve speed function (attached pic) in my Time machine that allows smooth transitions between speed steps.
I need to distort the curve in some way to increase/decrease the area under the curve (distance) without changing the start/end speed or time .
I would like to scale the vertical axis in a non linear fashion to squash/expand the end or start curves to increase the area because the curve is in form of a look up table with a vertical speed axis resolution of 0 to 65000 (word) and horizonal time axis of 0 to 255 (byte), so the verticle axis would seem to be the one to scale.
What scale formula can I apply to the look up table speed values to smoothly change the area (distance)?.
The PIC im useing only allows integer math and its math functions such as sin/cos/log are very basic and low res, so im hoping to avoid them.
|