Conic sections: 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 brd1=JXG.JSXGraph.initBoard('jxgbox1',{boundingbox:[-3,3,3,-3], keepaspectration:true}); | var brd1=JXG.JSXGraph.initBoard('jxgbox1',{boundingbox:[-3,3,3,-3], keepaspectration:true}); | ||
var A = brd1.create('point',[- | var A = brd1.create('point',[-1,1]); | ||
var B = brd1.create('point',[1,1]); | var B = brd1.create('point',[1,1]); | ||
var C = brd1.create('point',[0,-1]); | var C = brd1.create('point',[0,-1]); | ||
Line 11: | Line 11: | ||
var brd2=JXG.JSXGraph.initBoard('jxgbox2',{boundingbox:[-3,3,3,-3], keepaspectration:true}); | var brd2=JXG.JSXGraph.initBoard('jxgbox2',{boundingbox:[-3,3,3,-3], keepaspectration:true}); | ||
var A = brd2.create('point',[- | var A = brd2.create('point',[-1,2]); | ||
var B = brd2.create('point',[1,2]); | var B = brd2.create('point',[1,2]); | ||
var s = brd2.create('slider',[[-1,-2],[1,-2],[0,5,10]]); | var s = brd2.create('slider',[[-1,-2],[1,-2],[0,5,10]]); | ||
var ell = brd2.create('ellipse',[A,B,function(){return s.Value();}]); | var ell = brd2.create('ellipse',[A,B,function(){return s.Value();}]); | ||
</jsxgraph> | </jsxgraph> |