Circle approximation: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) (var i;) |
||
Line 1: | Line 1: | ||
<jsxgraph width="600" height="600" box="box"> | <jsxgraph width="600" height="600" box="box"> | ||
var brd = JXG.JSXGraph.initBoard('box', {axis:true, originX: 300, originY: 300, grid:true, unitX: 50, unitY: 50}); | var brd = JXG.JSXGraph.initBoard('box', {axis:true, originX: 300, originY: 300, grid:true, unitX: 50, unitY: 50}); | ||
var n = brd.createElement('slider',[[0,3],[3,3],[ | var n = brd.createElement('slider',[[0,3],[3,3],[3,4,20]],{name:'n',snapWidth:1}); | ||
var p0 = brd.createElement('point',[0,0]); | var p0 = brd.createElement('point',[0,0]); | ||
var p1 = brd.createElement('point',[2,0]); | var p1 = brd.createElement('point',[2,0]); | ||
var | var circ = brd.createElement('circle',[p0,p1]); | ||
var c = brd.createElement('circle',[[],[]]); | |||
c.updateDataArray = function() { | |||
} | |||
</jsxgraph> | </jsxgraph> | ||