range

fun range(begin: Double, end: Double, samples: Int): List<Double>

Partitions \(a, b\) into \((n - 1)\) equal intervals and returns the endpoints.

Return

List of endpoints of the intervals.

Parameters

begin

\(a\) The start of the range.

end

\(b\) The end of the range.

samples

\(n\) The number of samples (must be at least 2).

Throws