Returns a vector with linear spacing
function linspace input Real min; input Real max; input Integer npoints; output Real[npoints] res; end linspace;