view test/octave.test/poly/polyfit-1.m @ 5396:983bf1f4bab5

[project @ 2005-06-17 04:10:53 by jwe]
author jwe
date Fri, 17 Jun 2005 04:10:53 +0000
parents f8e971946a4f
children
line wrap: on
line source

x = [-2, -1, 0, 1, 2];
all (all (abs (polyfit (x, x.^2+x+1, 2) - [1, 1, 1]) < sqrt (eps)))