summaryrefslogtreecommitdiff
path: root/50/CH4/EX4.34/ex_4_34.sce
blob: ed9752978bdb7f176e8c1c863cc18c80e2ae8a82 (plain)
1
2
3
4
5
6
7
8
9
// example 4.34

// obtain least square straight line fit

x=[.2 .4 .6 .8 1];
f=[.447 .632 .775 .894 1];


[P]=straightlineapprox(x,f)        // call of the function to get the desired solution