Gnuplot Function Syntax
- Basic Functions:
- addition: x + y
subtraction: x - y multiplication: x * y division: x / y
- Other Functions:
- sine: sin(x)
cosine: cos(x)
tangent: tan(x)
arcsine: asin(x)
arccosine: acos(x)
arctangent: atan(x)
hyperbolic sine: sinh(x)
hyperbolic cosine: cosh(x)
hyperbolic tangent: tanh(x)
square root: sqrt(x)
absolute value: abs(x)
natural logarithm: log(x)
base 10 logarithm: log10(x)
ex : exp(x)
For exponents such as x2, use x**2 or x^2.
All functions must be expressed in terms of y (or z in 3D) For example, x**2 + y**2 = 1 is not an acceptable function, but it can be expressed as sqrt(1-x**2), which is acceptable.
To plot more than one function on the same graph, separate the functions with commas.
Note: all spaces are removed, capital letters are converted to lower case, and ^ is automatically replaced with **.
[ Home | Gnuplot Home |
Index ]
[ Simulation Software | Gnuplot Help ]
[ Baroreceptor Models | SimSurface | Fractal Modeling Tools
] [ GalaxSee | The Pit and the
Pendulum | Environmental Models | InteGreat ]
Last Update: January 20, 2006
Please direct questions and comments about this page to WebMaster@shodor.org
© Copyright 2006 The Shodor Education Foundation, Inc.
|