Rolling circle on cosine: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 18: | Line 18: | ||
// Circle | // Circle | ||
var P = brd.create('point',[0,0.5],{name:'P', trace:false}); | var P = brd.create('point',[0,0.5],{name:'P', trace:false}); | ||
var C = brd.create('point',[0,1 | var C = brd.create('point',[0,1],{name:'C'}); | ||
var circle = brd.create('curve',[ | var circle = brd.create('curve',[ | ||
function(t){var d = P.Dist(C); | function(t){var d = P.Dist(C); | ||
Line 30: | Line 30: | ||
// Point on circle | // Point on circle | ||
var B = brd.create('glider',[0, | var B = brd.create('glider',[0,1.5,circle],{name:'B', color:'blue',trace:true}); | ||
brd.create('segment',[C,B],{color:'black'}); | brd.create('segment',[C,B],{color:'black'}); | ||
brd.unsuspendUpdate(); | brd.unsuspendUpdate(); |