Cubic spline interpolation

From JSXGraph Wiki
Revision as of 17:55, 15 December 2008 by A WASSERMANN (talk | contribs)

Constructs a cubic spline through given points. Points can be added by clicking on "Add point".

123456−1−2−3−42468−2−4
A
B
C
D

References

The underlying JavaScript code

        function addPoint() {
          p.push(board.createElement('point',[(Math.random()-0.5)*10,(Math.random()-0.5)*3],{style:6}));
          board.update();
        }