Skip to content

Instantly share code, notes, and snippets.

@migsalazar
Last active June 5, 2016 06:26
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 migsalazar/26f1890be1b95b41703f1a38a92d58f0 to your computer and use it in GitHub Desktop.
Save migsalazar/26f1890be1b95b41703f1a38a92d58f0 to your computer and use it in GitHub Desktop.
Plotting with canvas
var xExists = [0, 2*Math.PI],
f = function(x) {
return 3*Math.sin(x) * Math.cos(x)/2;
};
plot(f, xExists);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment