Polynomial curve of constant width: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
var a = brd.create('slider',[[-1,1.8],[1,1.8],[-5,0.20,5]], {name:'a'}); | var a = brd.create('slider',[[-1,1.8],[1,1.8],[-5,0.20,5]], {name:'a'}); | ||
var b = brd.create('slider',[[-1,1.6],[1,1.6],[-5,1.15,10]], {name:'b'}); | var b = brd.create('slider',[[-1,1.6],[1,1.6],[-5,1.15,10]], {name:'b'}); | ||
var k = brd.create('slider',[[-1,1.4],[1,1.4],[1, | var k = brd.create('slider',[[-1,1.4],[1,1.4],[1,1,11]], {name:'k\'', snapWidth:1}); | ||
var p = brd.create('curve',[function(phi, suspendUpdate){ | var p = brd.create('curve',[function(phi, suspendUpdate){ | ||
Line 11: | Line 11: | ||
aa = a.Value(); | aa = a.Value(); | ||
bb = b.Value(); | bb = b.Value(); | ||
kk = k.Value(); | kk = 2*k.Value()+1; | ||
} | } | ||
var co = Math.cos(kk*phi*0.5); | var co = Math.cos(kk*phi*0.5); |