Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created February 28, 2013 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/5057199 to your computer and use it in GitHub Desktop.
Save tmcw/5057199 to your computer and use it in GitHub Desktop.
Sine and Cosine in different Programming Languages

Sine and Cosine in different languages

js

Math.cos();
Math.sin();

ruby

Math.cos()
Math.sin()

python

import math
math.cos()
math.sin()

php

cos();
sin();

processing

cos();
sin();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment