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/CH37/EX37.4/Example37_4.sce | 14 ++++++++++++++ 24/CH37/EX37.4/Example37_4_result.txt | 5 +++++ 2 files changed, 19 insertions(+) create mode 100755 24/CH37/EX37.4/Example37_4.sce create mode 100755 24/CH37/EX37.4/Example37_4_result.txt (limited to '24/CH37/EX37.4') diff --git a/24/CH37/EX37.4/Example37_4.sce b/24/CH37/EX37.4/Example37_4.sce new file mode 100755 index 000000000..85daa3b73 --- /dev/null +++ b/24/CH37/EX37.4/Example37_4.sce @@ -0,0 +1,14 @@ +//Given that +l = 405*10^-9 //in meter +d = 19.44*10^-6 //in meter +a = 4.050*10^-6 //in meter + +//Sample Problem 37-4a +printf("**Sample Problem 37-4a**\n") +n = floor(d/a) +printf("The number of bright fringes are %d\n", 2*n+1) + +//Sample Problem 37-4b +printf("\n**Sample Problem 37-4b**\n") +num = ceil(2*d/a) +printf("The number of bright fringes within either of the first side peak is %d", num/2 - 1) \ No newline at end of file diff --git a/24/CH37/EX37.4/Example37_4_result.txt b/24/CH37/EX37.4/Example37_4_result.txt new file mode 100755 index 000000000..226cf85ff --- /dev/null +++ b/24/CH37/EX37.4/Example37_4_result.txt @@ -0,0 +1,5 @@ +**Sample Problem 37-4a** +The number of bright fringes are 9 + +**Sample Problem 37-4b** +The number of bright fringes within either of the first side peak is 4 \ No newline at end of file -- cgit