Specifying Functions in Gnuplot

In 2D plots, the variable to use is x, in 3D plots, use x and y.

Multiplication is denoted by *, and division by /. Exponents are denoted by**, and all multiplication must be explicit. That is, 3x would generate and error, you would want to use 3*x.

For example, the polynomial 3x4 + 4x - 2/3 would be the following in Gnuplot:

Gnuplot also has a number of predefined functions. These are called by putting the arguments in parenthesis, i.e., sin(x). These include the following: The following are other examples of functions. Make sure you understand what functions are being described.
Table of Contents - Previous - Starting and Quitting GnuPlot - Next - A Simple Example
College of Natural Sciences / University of Northern Iowa / manager@cns.uni.edu

Copyright 1996 College of Natural Sciences. All Rights Reserved.
Last Modified: 10/29/96