Cubic spline interpolation: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 31: Line 31:
</html>
</html>


=== References ===
* [http://en.wikipedia.org/wiki/Spline_interpolation http://en.wikipedia.org/wiki/Spline_interpolation]
=== The underlying JavaScript code ===
<source lang="javascript">
<source lang="javascript">
         function addPoint() {
         function addPoint() {

Revision as of 12:42, 15 December 2008

Under Construction -- NOT YET WORKING

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

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();
        }