Difference between revisions of "Cubic spline interpolation"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 21: | Line 21: | ||
p[3] = board.createElement('point', [2,1], {style:6}); | p[3] = board.createElement('point', [2,1], {style:6}); | ||
− | + | var c = board.createElement('spline', p, {strokeWidth:3}); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | var c = board.createElement(' | ||
function addPoint() { | function addPoint() { |
Revision as of 20:04, 7 December 2008
Under Construction -- NOT YET WORKING
Constructs a cubic spline through given points. Points can be added by clicking on "Add point".
function addPoint() {
p.push(board.createElement('point',[(Math.random()-0.5)*10,(Math.random()-0.5)*3],{style:6}));
board.update();
}