Difference between revisions of "Trigonometric functions"

From JSXGraph Wiki
Jump to: navigation, search
Line 7: Line 7:
  
 
<jsxgraph width="600" height="600" box="box">
 
<jsxgraph width="600" height="600" box="box">
var brd = JXG.JSXGraph.initBoard('box', {originX: 300, originY: 300, grid:true, unitX: 100, unitY: 100});
+
var brd = JXG.JSXGraph.initBoard('box', {boundingbox: [-3, 3, 3, -3]});
 
var ax = brd.createElement('line',[[0,0],[1,0]],{visible:false});
 
var ax = brd.createElement('line',[[0,0],[1,0]],{visible:false});
 
var ay = brd.createElement('line',[[0,0],[0,1]],{visible:false});
 
var ay = brd.createElement('line',[[0,0],[0,1]],{visible:false});

Revision as of 12:27, 31 January 2013

The well known trigonometric functions can be visualized on the circle of radius 1. See http://en.wikipedia.org/wiki/Trigonometric_functions for the definitions.

  • Tangent: [math]\tan x = \frac{\sin x}{\cos x}[/math]
  • Cotangent: [math]\cot x = \frac{\cos x}{\sin x}[/math]
  • Secant: [math]\sec x = \frac{1}{\cos x}[/math]
  • Cosecant: [math]\csc x = \frac{1}{\sin x}[/math]