Arc length: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
var brd = JXG.JSXGraph.initBoard('box', {axis:true, originX: 400, originY: 300, grid:true, unitX: 50, unitY: 50}); | var brd = JXG.JSXGraph.initBoard('box', {axis:true, originX: 400, originY: 300, grid:true, unitX: 50, unitY: 50}); | ||
var n = brd.createElement('slider',[[1,3],[5,3],[1,10,50]],{name:'n'}); | var n = brd.createElement('slider',[[1,3],[5,3],[1,10,50]],{name:'n'}); | ||
var f = function(x){ return | var f = function(x){ return 0.2*x*x+0.2*Math.sin(x); } | ||
var plot = brd.createElement('functiongraph',[f]); | var plot = brd.createElement('functiongraph',[f]); | ||