interpol() seems to be implemented in terms of interpolate() already. Does seem a bit confusing. Maybe the two routines could be merged into a "smarter" interpolate()...
--Chris On 10/15/2016 05:18, Karl Glazebrook wrote: > Seems to me we should fix this inconsistency in usage? > > - Karl > > use PDL; > $x = sequence(100); > $y = $x**2; > $x2 = sequence(10)*10; > > # This works > > $y2 = interpol $x2, $x, $y; > print $y2, "\n"; > > # This does not work > $y2 = interpolate $x2, $x, $y; > print $y2, "\n"; > # But this does > ($y2,$err) = interpolate $x2, $x, $y; > print $y2, "\n"; > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel