Mercurial > hg > octave-lyh
view test/octave.test/poly/polyfit-1.m @ 2716:2b5c27299cde
[project @ 1997-02-22 08:40:55 by jwe]
author | jwe |
---|---|
date | Sat, 22 Feb 1997 08:44:22 +0000 |
parents | |
children | f8e971946a4f |
line wrap: on
line source
x = [-2, -1, 0, 1, 2]; all (all (polyfit (x, x.^2+x+1, 2) - [1; 1; 1] < 4*eps))