GET A RANGE OF NUMBERS BETWEEN MIN AND MAX PROVIDED

Generates an evenly-spaced numeric sequence between a minimum and maximum value using a configurable step size, similar to PHP’s range(). Use it whenever a workflow needs a series of numbers (e.g., parameter sweeps or loop indices) formatted as strings.

When to use

Classification: process.

Tagged: linspace, math, numeric_sequence, range, scalar, step, sweep.

Inputs

Label ID Type Default Required Description
Min min scalar 0 Start value of the numeric range (inclusive); dimensionless scalar, defaults to 0.
Max Number max float 1 End value of the numeric range (inclusive); dimensionless float, defaults to 1.
Step step float 0.1 Increment between consecutive values in the range; dimensionless float, defaults to 0.1 — reduce for finer resolution or increase for coarser steps.
Format format text %10.2f C-style printf format string used to render each number as text (e.g. ‘%10.2f’ for a 10-character field with 2 decimal places); defaults to ‘%10.2f’ and rarely needs changing.

Outputs

Label ID Type Description
math_range_output_1 math_range_output_1 scalar Ordered list of formatted numeric strings spanning [min, max] at the given step interval, each formatted according to the ‘format’ input.

Disciplines

  • data.curve.transform
  • platform.workflow

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=math_range


Auto-generated from transformation schema. Worker id: math_range. Schema hash: 576133f86fbb. Hand-curated docs in workerexamples/ override this page when present.