Trigonometric functions: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
var p0 = brd.createElement('point',[0,0],{fixed:true,visible:false}); | var p0 = brd.createElement('point',[0,0],{fixed:true,visible:false}); | ||
var p1 = brd.createElement('point',[1,0],{}); | var p1 = brd.createElement('point',[1,0],{}); | ||
var c = brd.createElement('circle',[p0,p1],{}); | var c = brd.createElement('circle',[p0,p1],{dash:2}); | ||
var p2 = brd.createElement('glider',[0.4,1.0,c],{}); | var p2 = brd.createElement('glider',[0.4,1.0,c],{}); | ||
var p3 = brd.createElement('point',[function(){return p2.X();},0.0],{}); | var p3 = brd.createElement('point',[function(){return p2.X();},0.0],{}); | ||
Line 16: | Line 16: | ||
var t = brd.createElement('tangent',[p2],{}); | var t = brd.createElement('tangent',[p2],{}); | ||
var p5 = brd.createElement('point',[brd.intersectionFunc(t,ax,0)],{}); | var p5 = brd.createElement('point',[brd.intersectionFunc(t,ax,0)],{}); | ||
var p6 = brd.createElement('point',[brd.intersectionFunc(t,ay,0)],{}); | |||
brd.createElement('line',[p5,p6],{straightFirst:false,straightLast:false}); | |||