Trigonometric functions: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 11: Line 11:
var p4 = brd.createElement('point',[0.0,function(){return p2.Y();}],{visible:false,name:'',withLabel:false});
var p4 = brd.createElement('point',[0.0,function(){return p2.Y();}],{visible:false,name:'',withLabel:false});


brd.createElement('line',[p0,p2],{straightFirst:false,straightLast:false});
brd.createElement('line',[p0,p2],{straightFirst:false,straightLast:false,strokeColor:'black'});
brd.createElement('line',[p2,p3],{straightFirst:false,straightLast:false});
brd.createElement('line',[p2,p3],{straightFirst:false,straightLast:false,strokeColor:'red'});
brd.createElement('line',[p2,p4],{straightFirst:false,straightLast:false});
brd.createElement('line',[p2,p4],{straightFirst:false,straightLast:false,strokeColor:'red'});


var t = brd.createElement('tangent',[p2],{visible:false});
var t = brd.createElement('tangent',[p2],{visible:false});
Line 20: Line 20:
brd.createElement('line',[p5,p6],{straightFirst:false,straightLast:false});
brd.createElement('line',[p5,p6],{straightFirst:false,straightLast:false});


brd.createElement('line',[p0,p6],{straightFirst:false,straightLast:false});
brd.createElement('line',[p0,p6],{straightFirst:false,straightLast:false,strokeColor:'green'});
brd.createElement('line',[p0,p5],{straightFirst:false,straightLast:false});
brd.createElement('line',[p0,p5],{straightFirst:false,straightLast:false,strokeColor:'green'});





Revision as of 16:09, 11 June 2009