summaryrefslogtreecommitdiff
path: root/3816/CH2/EX2.1/2_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3816/CH2/EX2.1/2_1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3816/CH2/EX2.1/2_1.sce')
-rw-r--r--3816/CH2/EX2.1/2_1.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3816/CH2/EX2.1/2_1.sce b/3816/CH2/EX2.1/2_1.sce
new file mode 100644
index 000000000..64b76c639
--- /dev/null
+++ b/3816/CH2/EX2.1/2_1.sce
@@ -0,0 +1,19 @@
+clc;
+clear;
+b1=10;//From plot
+b2=31;//From plot
+b3=68;//From plot
+b4=100;//From plot
+b5=100;//From plot
+b6=100;//From plot
+//Case:1
+B1=0.86+5.16+16.72+28.9+32.3+16.7;
+B3=2.36+10.32+16.04+0-23.6-16.7;
+B5=3.23+5.16-16.04-28.9+8.6+16.7;
+B7=3.23-5.16-16.04+28.9+8.6-16.7;
+disp('To find the harmonic components ,mean gap density ,rms value:')
+disp(B7,B5,B3,B1,'The harmonic components are:')
+B8=((2/%pi)*(B1+((1/3)*B3)+((1/5)*B5)+((1/7)*B7)));
+disp(B8,'The mean gap density is :')
+B9=(((1/2)*(((B1)^2)+((B3)^2)+((B5)^2)+((B7)^2)))^(1/2));
+disp(B9,'The rms value is:')