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 /149/CH10/EX10.5 | |
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 '149/CH10/EX10.5')
-rwxr-xr-x | 149/CH10/EX10.5/ques5.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/149/CH10/EX10.5/ques5.sce b/149/CH10/EX10.5/ques5.sce new file mode 100755 index 000000000..307c0987b --- /dev/null +++ b/149/CH10/EX10.5/ques5.sce @@ -0,0 +1,12 @@ +//ques5
+clc
+disp('finding the fourier series of given function');
+syms x l
+s=0;
+n=input('enter the no of terms upto each of sin terms in the expansion : ');
+for i=1:n
+
+ bi=2/%pi*integ(x*sin(i*x),x,0,%pi);
+ s=s+float(bi)*sin(i*x);
+end
+disp(float(s));
|