Name

curve — Return a curve defined by a series of X and Y points.

Syntax

curve(X, Y, ...)
              

The CURVE function has the following arguments:

X, Y

The X and Y values of an inflection point along a curve.

...

X and Y pairs are repeated to define the curve.

Description

This function defines a curve using a series of X and Y points.

The points must be monotonically increasing on the X axis.

The function must be provided with an even number of arguments so that there is one X value for each Y value.

At least one coordinate pair must be provided.

Examples

Formula

Description

Result

curve(0,0)

Return a curve that defines 0 for any value of X.Curve

curve(-1000,-1000, 1000,1000)

Return a curve that defines a linear value of Y for any value of X between -1000 and 1000.Curve