Skip to content

RF Touchstone / index / range

Variable: range()

const range: {(str, includeEnd?): Matrix; (start, end, includeEnd?): Matrix; (start, end, step, includeEnd?): Matrix; } = _range

Defined in: src/index.ts:15

Create an array or matrix with a range of numbers.

Call Signature

(str, includeEnd?): Matrix

Create an array from a range. By default, the range end is excluded. This can be customized by providing an extra parameter includeEnd.

Parameters

str

string

A string 'start:end' or 'start:step:end'

includeEnd?

boolean

Returns

Matrix

Parameters describing the ranges start, end, and optional step.

Call Signature

(start, end, includeEnd?): Matrix

Parameters

start

number | BigNumber

end

number | BigNumber

includeEnd?

boolean

Returns

Matrix

Call Signature

(start, end, step, includeEnd?): Matrix

Parameters

start

number | BigNumber | Unit

end

number | BigNumber | Unit

step

number | BigNumber | Unit

includeEnd?

boolean

Returns

Matrix

See

Math.js documentation for range