Difference between revisions of "Multiple logarithmic spirals"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
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(x) { return board.createElement('curve', [function(phi){return a.Value()*Math.exp(b.Value()*phi+Math.PI*x*0.25); }, [0, 0], - | + | (function(x) { return board.createElement('curve', [function(phi){return a.Value()*Math.exp(b.Value()*phi+Math.PI*x*0.25); }, [0, 0], -4*Math.PI, 4*Math.PI], |
{curveType:'polar', strokewidth:4}); | {curveType:'polar', strokewidth:4}); | ||
})(i); | })(i); |