g.js — graphical objects for JavaScript

sinsin

Calculate the trigonometric sine of an angle.

The sine of 1:

g.sin(1);

The sine of half pi:

g.sin(Math.PI / 2);

See Also

  • cos: Calculate the trigonometric cosine of an angle.
  • tan: Calculate the trigonometric tangens of an angle.