Handy Graphs

This is an interactive re-creation of a graphic I saw on Twitter via Matt Sephton’s retweet of @_phocom. The image is meant to be a useful reference for math functions that are useful in graphics programming and game development. I thought the graphic was cool, and I had been testing the Function Plot Javascript library, so I made this as a fun exercise.

The graphs are interactive, pan them or zoom with scroll wheel.

abs(x)−4−3−2−10123400.511.522.533.54
acos(x)−4−3−2−10123400.511.522.533.5
acosh(x)−4−3−2−10123400.20.40.60.811.21.41.61.822.2
airy(x)−4−3−2−101234-0.6-0.5-0.4-0.3-0.2-0.100.10.20.30.40.50.6
asin(x)−4−3−2−101234-1.5−1-0.500.511.5
asinh(x)−4−3−2−101234-2.5−2-1.5−1-0.500.511.522.5
atan(x)−4−3−2−101234-1.5−1-0.500.511.5
atanh(x)−4−3−2−101234−4−3−2−101234
cdawson(x)−4−3−2−101234-1.2−1-0.8-0.6-0.4-0.200.20.4
ceil(x)−4−3−2−101234−4−3−2−101234
cerf(x)−4−3−2−101234−2-1.5−1-0.500.511.52
cos(x)−4−3−2−101234−1-0.8-0.6-0.4-0.200.20.40.60.81
cosh(x)−4−3−2−101234024681012141618202224262830
erf(x)−4−3−2−101234−1-0.8-0.6-0.4-0.200.20.40.60.81
erfc(x)−4−3−2−10123400.20.40.60.811.21.41.61.82
exp(x)−4−3−2−101234051015202530354045505560
floor(x)−4−3−2−101234−4−3−2−101234
imag(x)−4−3−2−101234−1-0.8-0.6-0.4-0.200.20.40.60.81
int(x)−4−3−2−101234−4−3−2−101234
inverf(x)−4−3−2−101234-2.5−2-1.5−1-0.500.511.522.5
invnorm(x)−4−3−2−101234−3-2.5−2-1.5−1-0.500.511.522.53
lambertw(x)−4−3−2−101234−1-0.8-0.6-0.4-0.200.20.40.60.811.21.4
lgamma(x)−4−3−2−101234−2−10123456
log(x)−4−3−2−101234−6−5−4−3−2−1012
log10(x)−4−3−2−101234-2.5−2-1.5−1-0.500.51
real(x)−4−3−2−101234−4−3−2−101234
sgr(x)−4−3−2−101234−1-0.8-0.6-0.4-0.200.20.40.60.81
sin(x)−4−3−2−101234−1-0.8-0.6-0.4-0.200.20.40.60.81
sinh(x)−4−3−2−101234−30−25−20−15−10−5051015202530
sqrt(x)−4−3−2−10123400.20.40.60.811.21.41.61.82
tanh(x)−4−3−2−101234−1-0.8-0.6-0.4-0.200.20.40.60.81
besj0(x)−4−3−2−101234-0.6-0.4-0.200.20.40.60.81
besj1(x)−4−3−2−101234−2-1.5−1-0.500.511.52
besy0(x)−4−3−2−101234−2-1.5−1-0.500.511.52
EllipticK(x)−4−3−2−101234−2-1.5−1-0.500.511.52
EllipticE(x)−4−3−2−101234−2-1.5−1-0.500.511.52
besy1(x)−4−3−2−101234−2-1.5−1-0.500.511.52
erfi(x)−4−3−2−101234−20−15−10−505101520
gamma(x)−4−3−2−101234−20−15−10−505101520
tan(x)−4−3−2−101234−20−15−10−505101520

Some graphs are left blank because I wasn’t able to easily find an implementation of the function in JavaScript. Let me know on Twitter if you have one.