Difference between revisions of "Multiple logarithmic spirals"

From JSXGraph Wiki
Jump to navigationJump to search
(New page: <jsxgraph width="600" height="600" box="box1"> board = JXG.JSXGraph.initBoard('box1', {originX: 300, originY: 300, unitX: 25, unitY: 25}); var a = board.createElement('slider', [[1,-1],[...)
 
Line 4: Line 4:
 
  var b = board.createElement('slider', [[1,-2],[5,-2],[0,0.15,1]], {name:'b'});
 
  var b = board.createElement('slider', [[1,-2],[5,-2],[0,0.15,1]], {name:'b'});
 
  for (var i=0;i<8;i++) {
 
  for (var i=0;i<8;i++) {
   function() { return board.createElement('curve', [function(phi){return a.Value()*board.pow(Math.E,b.Value()*phi*Math.PI*i*0.25); }, [0, 0], 0, 8*Math.PI],
+
   (function() { return board.createElement('curve', [function(phi){return a.Value()*board.pow(Math.E,b.Value()*phi*Math.PI*i*0.25); }, [0, 0], 0, 8*Math.PI],
 
             {curveType:'polar', strokewidth:4});         
 
             {curveType:'polar', strokewidth:4});         
   }();
+
   })();
 
  }
 
  }
 
</jsxgraph>
 
</jsxgraph>

Revision as of 19:43, 24 April 2009