function linspace(start, end, num) {
    const step = (end - start) / (num - 1);
    return Float64Array.from({ length: num }, (_, i) => start + step * i);
}
Return evenly spaced numbers over a specified interval.
@param {number} start The starting value of the sequence.
@param {number} end The end value of the sequence.
@param {number} num Number of samples to generate.
@returns `num` evenly spaced samples, calculated over the interval `[start, stop]`.