From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 24/CH17/EX17.5/Example17_5.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 24/CH17/EX17.5/Example17_5.sce (limited to '24/CH17/EX17.5/Example17_5.sce') 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 -- cgit