Fill()

Fill an array with values

FILL value=Any [step=Number] Fill and array with values
[/GEOMETRIC]   Fill array geometrically

example:

	# Create some geometric data
	>> a = dimensions(200)
	>> Fill/Geometric a 1.0 0.9
	>> printn a
	[1.0 0.9 0.81 0.729 0.6561 ...] Array(200 )

Note: step values only work with integer and real arrays.

Fill

The Fill() command provides a quick way of filling up an array with data. For non-numeric data, it is just a way of filling the array with identical values. For numeric data, it is also a quick way of putting some useful data in an array, for example, an arithmetic fill is ideal for generating an axis to plot an array of data against. In the same mode, a geometric fill creates automatic log data to plot against.

Parameters:

/Geometric

Increase the values placed into the array geometrically based on the starting value and the step

Value (Any)

The value to fill the array with, or, if "step" is used, this is the starting value of the series and appears in the first element of the array.

Step (Number)

Sets a step size (or rate if /Geometric) is specified.

RESULT = (Array)

The filled array can also be returned as a result. In this case, the original array remains unmodified.