summaryrefslogtreecommitdiff
path: root/24/CH17/EX17.5/Example17_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH17/EX17.5/Example17_5.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 '24/CH17/EX17.5/Example17_5.sce')
-rwxr-xr-x24/CH17/EX17.5/Example17_5.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/24/CH17/EX17.5/Example17_5.sce b/24/CH17/EX17.5/Example17_5.sce
new file mode 100755
index 000000000..6595ba9b9
--- /dev/null
+++ b/24/CH17/EX17.5/Example17_5.sce
@@ -0,0 +1,16 @@
+exec('degree_rad.sci', -1)
+
+//Given that
+Ym = 9.8*10^-3 //in meter
+phi = dtor(100) //in degrees
+
+//Sample Problem 17-5a
+printf("**Sample Problem 17-5a**\n")
+Yn = 2*Ym*cos(phi/2)
+printf("The amplitude of resultant wave is %fmm\n", Yn*10^3)
+
+//Sample Problem 17-5b
+printf("\n**Sample Problem 17-5b**\n")
+Y = 4.9*10^-3 //in meter
+phi = 2*acos(Y/(2*Ym))
+printf("The phase difference required is %frad", phi) \ No newline at end of file