Original xkcd.js script created by Dan Foreman-Mackey. Simple graph creation UI by Kevin Xu and Charlie Guo. Support for any javascript function by Bomadeno.
Use this tool to create graphs that clearly communicate "this is not precise". Great for visualizing stuff in a fun way, prototyping designs (game economies, stuff over time, etc)
- sin(x) and cos(x)
- x^2, -x^2, 2x, and 80
- x * cos(x)
- if(x<0) Math.sin(x); else x;