Conic sections: Difference between revisions

From JSXGraph Wiki
No edit summary
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',[-2,1]);
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',[-2,2]);
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>

Revision as of 12:49, 21 March 2010