g.js — graphical objects for JavaScript

coscos

Calculate the trigonometric cosine of an angle.

The cosine of 0:

g.cos(0);

The cosine of pi:

g.cos(Math.PI);

See Also

  • sin: Calculate the trigonometric sine of an angle.
  • tan: Calculate the trigonometric tangens of an angle.