Trigonometric functions: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
<jsxgraph width="600" height="600" box="box">
<jsxgraph width="600" height="600" box="box">
var brd = JXG.JSXGraph.initBoard('box', {axis:true, originX: 300, originY: 300, grid:true, unitX: 150, unitY: 150});
var brd = JXG.JSXGraph.initBoard('box', {axis:true, originX: 300, originY: 300, grid:true, unitX: 150, unitY: 150});
var ax = brd.createElement('axis',[[0,0],[1,0]],{});
var ax = brd.createElement('axis',[[0,0],[1,0]],{visible:false});
var ay = brd.createElement('axis',[[0,0],[0,1]],{});
var ay = brd.createElement('axis',[[0,0],[0,1]],{visible:false});
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],{});
Line 18: Line 18:
var p6 = brd.createElement('point',[brd.intersectionFunc(t,ay,0)],{});
var p6 = brd.createElement('point',[brd.intersectionFunc(t,ay,0)],{});
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,p5],{straightFirst:false,straightLast:false});





Revision as of 16:02, 11 June 2009