Conic sections in polar form: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) (New page: <jsxgraph board="brd" width="600" height="500"> var brd = JXG.JSXGraph.initBoard('jxgbox',{axis:true,originX:300,originY:250,unitX:25,unitY:25}); var p = brd.createElement('slider',[[2,8],...) |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
var f = brd.createElement('curve', | var f = brd.createElement('curve', | ||
[function(phi) { return p.Value()/(1-eps.Value()*Math.cos(phi+rho.Value())); }, [1,0], 0,function(){return len.Value()*Math.PI}], | [function(phi) { return p.Value()/(1-eps.Value()*Math.cos(phi+rho.Value())); }, [1,0], 0,function(){return len.Value()*Math.PI}], | ||
{curveType:'polar', strokewidth:2, strokeColor:#CA7291'} | {curveType:'polar', strokewidth:2, strokeColor:'#CA7291'} | ||
); | ); | ||
var q = brd.createElement('glider', [f], {style:6,name:'G'}); | var q = brd.createElement('glider', [f], {style:6,name:'G'}); |