blob: d7dceb1692b5ee06f8556002688a31f022691b8b (
plain)
1
2
3
4
5
6
7
|
// example 4.35
// obtain least square approximation of second degree;
x=[-2 -1 0 1 2];
f=[15 1 1 3 19];
[P]=quadraticapprox(x,f) // call of the function to get the desired solution
|