diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /50/CH4/EX4.41/ex_4_41.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '50/CH4/EX4.41/ex_4_41.sce')
-rwxr-xr-x | 50/CH4/EX4.41/ex_4_41.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/50/CH4/EX4.41/ex_4_41.sce b/50/CH4/EX4.41/ex_4_41.sce new file mode 100755 index 000000000..1ce2864ac --- /dev/null +++ b/50/CH4/EX4.41/ex_4_41.sce @@ -0,0 +1,20 @@ +// example 4.41
+// using chebyshev polinomials obtain least squares approximation of second degree;
+
+// the chebeshev polinomials;
+x=poly(0,"x");
+T0=1;
+T1=x;
+T2=2*x^2-1;
+
+
+// I=integrate ('1/(1-x^2)^(1/2)*(x^4-c0*T0-c1*T1-c2*T2)^2','x',-1,1)
+
+// since;
+c0=integrate('(1/3.14)*(x^4)/(1-x^2)^(1/2)','x',-1,1)
+
+c1=integrate('(2/3.14)*(x^5)/(1-x^2)^(1/2)','x',-1,1)
+
+c2=integrate('(2/3.14)*(x^4)*(2*x^2-1)/(1-x^2)^(1/2)','x',-1,1)
+
+ f=(3/8)*T0+(1/2)*T2;
\ No newline at end of file |