GSQRT

Purpose:

Generates a square root series based on a positive range of numbers in accordance with the specified parameters.

Syntax:

GSQRT(length, spacing, factor, offset)

length

-

An integer, the length of the output series.

spacing

-

A real, the spacing (delta x) between each point on the x-axis.

factor

-

Optional. A real, the expansion factor along the x-axis. Defaults to 1.

offset

-

Optional. A real, the offset along x-axis, specified in radians in SETRADIAN mode, or degrees in SETDEGREE mode. Defaults to 0.

Returns:

A series.

Example:

gsqrt(100, 0.1, 2, 5)

 

creates a square root series of 100 points spaced 0.1 x-units apart. This series will also be shifted by five x-units (the offset value) on the x-axis, and compressed by a factor of two.

Remarks:

The formula used to generate each point, n, in the series is as follows:

 

y[n] = spacing factor (n-1) + offset

See Also:

GSQRWAVE

SQRT