summaryrefslogtreecommitdiff
path: root/1691/CH6/EX6.33/Exmp6_33.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1691/CH6/EX6.33/Exmp6_33.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1691/CH6/EX6.33/Exmp6_33.sce')
-rwxr-xr-x1691/CH6/EX6.33/Exmp6_33.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1691/CH6/EX6.33/Exmp6_33.sce b/1691/CH6/EX6.33/Exmp6_33.sce
new file mode 100755
index 000000000..cf86c6358
--- /dev/null
+++ b/1691/CH6/EX6.33/Exmp6_33.sce
@@ -0,0 +1,12 @@
+//Example 6.33
+clc
+disp("B1 = 5*10^-2, B2 = 10^-4, B3 = 3*10^-6")
+disp("These are the amplitudes of various frequency components")
+d2=10^-4/(50*10^-2)
+d3=(3*10^-6)/(50*10^-2)
+d=sqrt((2*10^-4)^2+(6*10^-6)^2)*100
+format(7)
+disp(d2,"Therefore, D2 = |B2|/|B1| =")
+disp(d3,"Therefore, D2 = |B3|/|B1| =")
+format(5)
+disp(d,"Therefore, %D(in percentage) = sqrt(D2^2 + D3^2)*100 =")