summaryrefslogtreecommitdiff
path: root/24/CH17/EX17.6
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.6
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.6')
-rwxr-xr-x24/CH17/EX17.6/Example17_6.sce17
-rwxr-xr-x24/CH17/EX17.6/Example17_6_result.txt4
2 files changed, 21 insertions, 0 deletions
diff --git a/24/CH17/EX17.6/Example17_6.sce b/24/CH17/EX17.6/Example17_6.sce
new file mode 100755
index 000000000..3aee4f3d0
--- /dev/null
+++ b/24/CH17/EX17.6/Example17_6.sce
@@ -0,0 +1,17 @@
+//Given that
+Ym1 = 4.0*10^-3 //in meter
+Ym2 = 3.0*10^-3 //in meter
+phi1 = 0 //in rad
+phi2 = %pi/3 //in rad
+
+//Sample Problem 17-6
+printf("**Sample Problem 17-6**\n")
+//For horizontal component
+Ymh = Ym1*cos(phi1) + Ym2*cos(phi2)
+//For vertical component
+Ymv = Ym1*sin(phi1) + Ym2*sin(phi2)
+Ym = sqrt(Ymv^2 + Ymh^2)
+beta = atan(Ymv/Ymh)
+printf("The amplitude of the resultant wave is equal to %fmm\n", Ym*10^3)
+printf("The phase constant for the wave is %frad\n", beta)
+printf("The equation of wave is %f*sin(k*x - w*t + %frad)",Ym, beta) \ No newline at end of file
diff --git a/24/CH17/EX17.6/Example17_6_result.txt b/24/CH17/EX17.6/Example17_6_result.txt
new file mode 100755
index 000000000..5ad5e5daa
--- /dev/null
+++ b/24/CH17/EX17.6/Example17_6_result.txt
@@ -0,0 +1,4 @@
+**Sample Problem 17-6**
+The amplitude of the resultant wave is equal to 6.082763mm
+The phase constant for the wave is 0.441306rad
+The equation of wave is 0.006083*sin(k*x - w*t + 0.441306rad) \ No newline at end of file