Trigonometric functions: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 18: Line 18:
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,strokeColor:'black'});  // Hypotenuse
brd.createElement('line',[p0,p2],{straightFirst:false,straightLast:false,strokeColor:'black',withLabel:false});  // Hypotenuse
brd.createElement('line',[p2,p3],{straightFirst:false,straightLast:false,strokeColor:'red'});    // sin
brd.createElement('line',[p2,p3],{straightFirst:false,straightLast:false,strokeColor:'red',withLabel:false});    // sin
brd.createElement('line',[p2,p4],{straightFirst:false,straightLast:false,strokeColor:'red'});    // cos
brd.createElement('line',[p2,p4],{straightFirst:false,straightLast:false,strokeColor:'red',withLabel:false});    // cos


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


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


brd.createElement('text',[
brd.createElement('text',[

Revision as of 16:54, 22 June 2009

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]\displaystyle{ \tan x = \frac{\sin x}{\cos x} }[/math]
  • Cotangent: [math]\displaystyle{ \cot x = \frac{\cos x}{\sin x} }[/math]
  • Secant: [math]\displaystyle{ \sec x = \frac{1}{\cos x} }[/math]
  • Cosecant: [math]\displaystyle{ \csc x = \frac{1}{\sin x} }[/math]