summaryrefslogtreecommitdiff
path: root/50/CH4/EX4.35/ex_4_35.sce
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