It would be more useful generally to compute the sinusoidal curve in OS alongside the computation of the function . This would allow the crossings to be edited.
This needs a functional form of the current js code, probably recursive will do.
This is a simple computation, but the crossings and function are related so you cant change the crossings (other than by dropping one) in OS - better to allow the crossings to be edited in js
It would be more useful generally to compute the sinusoidal curve in OS alongside the computation of the function . This would allow the crossings to be edited.
This needs a functional form of the current js code, probably recursive will do.