Difference between revisions of "Conic sections in polar form"

From JSXGraph Wiki
Jump to: navigation, search
(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],...)
 
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'});  

Revision as of 19:21, 10 March 2009