3D Function Grapher

Plot an f(x,y) style function like x^2-y^2

images/grid3d.js

Press "Edit" and try these:

You can change "xMin", "xMax", "yMin" and "yMax" values, but at this stage the program is always centered on 0.

The "xN" and "yN" control how many squares are plotted, go too low and it gets too chunky, go too high and the program really slows down as it uses up a lot of your device's resources.

Also try changing the "zFact" to make the z-height more or less dramatic.

What's this?

Imagine you are walking on a hilly landscape. Your position on the flat ground can be given by coordinates x (east-west) and y (north-south).

The height of the hill at that point is z, or f(x,y). By plotting these heights, we get a beautiful 3D surface!

All Functions

Operators

+
Addition operator
-
Subtraction operator
*
Multiplication operator
/
Division operator
^
Exponent (Power) operator
()
Parentheses (brackets)

Functions

Make sure you have chosen radians or degrees with sin, cos, tan and so on.
sqrt
sin
cos
Cosine
tan
Tangent
asin
Inverse sine (arcsine)
acos
Inverse cosine (arccos)
atan
Inverse tangent (arctangent)
sinh
cosh
Hyperbolic cosine
tanh
Hyperbolic tangent
ln
The natural logarithm
log
The base-10 logarithm
abs
Absolute value (distance from zero)
sign
1 for positive, −1 for negative, and 0 for zero
round
round to nearest integer
largest integer not greater than the input value
smallest integer not less than the input value
fact
factorial function

Constants

pi
The constant π (3.14159265...)
e
Euler's number (2.71828...), the base for the natural logarithm