function linspace input Real min; input Real max; input Integer npoints; output Real[npoints] res; end linspace;