1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
|
{
"metadata": {
"name": "",
"signature": "sha256:e55f587b2da98ead68f73bb2b4d29bef91aa67eb577c460fb9dcaab92acc4339"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Ultrasonics"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.1, Page number 20"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the depth of a submerged submarine\n",
"\n",
"#Variable declaration\n",
"v = 1440; #velocity of ultrasonic waves(m/s)\n",
"t = 0.33; #time elapsed(s)\n",
"\n",
"#Calculation\n",
"d = v*t; #distance travelled(m)\n",
"d1 = d/2; #depth of submarine(m)\n",
"\n",
"#Result\n",
"print \"depth of the submerged submarine is\",d1, \"m\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"depth of the submerged submarine is 237.6 m\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.2, Page number 21"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the natural frequency \n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"l = 40; #length of iron rod(mm)\n",
"E = 115*10**9; #Young's modulus(N/m**2)\n",
"rho = 7.25*10**3; #density of pure iron(kg/m**3)\n",
"\n",
"#Calculation\n",
"l = l*10**-3; #length of iron rod(m)\n",
"new = (1/(2*l))*math.sqrt(E/rho); #natural frequency of the rod(Hz)\n",
"new = new*10**-3; #natural frequency of the rod(kHz)\n",
"new=math.ceil(new*10**3)/10**3; #rounding off to 3 decimals\n",
"\n",
"#Result\n",
"print \"depth of the submerged submarine is\",new, \"kHz\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"depth of the submerged submarine is 49.785 kHz\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.3, Page number 21"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the fundamental frequency \n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"l = 1; #length of quartz crystal(mm)\n",
"E = 7.9*10**10; #Young's modulus(N/m**2)\n",
"rho = 2650; #density(kg/m**3)\n",
"\n",
"#Calculation\n",
"l = l*10**-3; #length of iron rod(m)\n",
"new = (1/(2*l))*math.sqrt(E/rho); #natural frequency of the rod(Hz)\n",
"new = new*10**-6; \n",
"new=math.ceil(new*10**2)/10**2; #rounding off to 2 decimals\n",
"\n",
"#Result\n",
"print \"fundamental frequency of crystal is\",new, \"*10**6 Hz\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"fundamental frequency of crystal is 2.73 *10**6 Hz\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.4, Page number 22"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the velocity of waves\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"d = 0.55; #distance between 2 constructive antinodes(mm)\n",
"new = 1.5; #frequency of crystal(MHz)\n",
" \n",
"#Calculation\n",
"new = new*10**6; #frequency of crystal(Hz)\n",
"d = d*10**-3; #distance between 2 constructive antinodes(m)\n",
"#distance between 2 antinodes is given by lamda/2\n",
"lamda = 2*d; #wavelength of ultrasonic waves(m)\n",
"v = new*lamda; #velocity of waves(m/s)\n",
"\n",
"#Result\n",
"print \"velocity of waves is\",int(v), \"m/s\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"velocity of waves is 1650 m/s\n"
]
}
],
"prompt_number": 4
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.5, Page number 22"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the natural frequency\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"l = 50; #length of rod(mm)\n",
"E = 11.5*10**10; #Young's modulus(N/m**2)\n",
"rho = 7250; #density(kg/m**3)\n",
"\n",
"#Calculation\n",
"l = l*10**-3; #length of iron rod(m)\n",
"new = (1/(2*l))*math.sqrt(E/rho); #natural frequency of the rod(Hz)\n",
"new = new*10**-3; #natural frequency of the rod(kHz)\n",
"new = math.ceil(new*10**2)/10**2; #rounding off to 2 decimals\n",
"\n",
"#Result\n",
"print \"natural frequency of rod is\",new, \"kHz\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"natural frequency of rod is 39.83 kHz\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.6, Page number 22"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the frequency\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"l = 2; #length of crystal(mm)\n",
"E = 7.9*10**10; #Young's modulus(N/m**2)\n",
"rho = 2650; #density(kg/m**3)\n",
"\n",
"#Calculation\n",
"l = l*10**-3; #length of iron rod(m)\n",
"new = (1/(2*l))*math.sqrt(E/rho); #natural frequency of the rod(Hz)\n",
"new = new*10**-6; #natural frequency of the rod(MHz)\n",
"new=math.ceil(new*10**3)/10**3; #rounding off to 3 decimals\n",
"\n",
"#Result\n",
"print \"frequency of crystal is\",new, \"MHz\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"frequency of crystal is 1.365 MHz\n"
]
}
],
"prompt_number": 7
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.7, Page number 23"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the frequency\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"l = 3; #length of crystal(mm)\n",
"E = 8*10**10; #Young's modulus(N/m**2)\n",
"rho = 2500; #density(kg/m**3)\n",
"\n",
"#Calculation\n",
"l = l*10**-3; #length of iron rod(m)\n",
"new = (1/(2*l))*math.sqrt(E/rho); #natural frequency of the rod(Hz)\n",
"new = new*10**-3; #natural frequency of the rod(kHz) \n",
"new=math.ceil(new*10**2)/10**2; #rounding off to 2 decimals\n",
"\n",
"#Result\n",
"print \"frequency of crystal is\",new, \"kHz\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"frequency of crystal is 942.81 kHz\n"
]
}
],
"prompt_number": 8
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.8, Page number 23"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the frequency\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"l = 1.5; #length of crystal(mm)\n",
"E = 7.9*10**10; #Young's modulus(N/m**2)\n",
"rho = 2650; #density(kg/m**3)\n",
"\n",
"#Calculation\n",
"l = l*10**-3; #length of iron rod(m)\n",
"new = (1/(2*l))*math.sqrt(E/rho); #natural frequency of the rod(Hz)\n",
"new = new*10**-6; #natural frequency of the rod(MHz) \n",
"new=math.ceil(new*10**2)/10**2; #rounding off to 2 decimals\n",
"\n",
"#Result\n",
"print \"frequency of crystal is\",new, \"MHz\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"frequency of crystal is 1.82 MHz\n"
]
}
],
"prompt_number": 9
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.9, Page number 24"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the depth of the sea\n",
"\n",
"#Variable declaration\n",
"v = 1440; #velocity of ultrasonic waves(m/s)\n",
"t = 0.95; #time elapsed(s)\n",
"\n",
"#Calculation\n",
"d = v*t; #distance travelled(m)\n",
"d1 = d/2; #depth of sea(m)\n",
"\n",
"#Result\n",
"print \"depth of the submerged submarine is\",int(d1), \"m\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"depth of the submerged submarine is 684 m\n"
]
}
],
"prompt_number": 10
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.10, Page number 24"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the depth of a submerged submarine\n",
"\n",
"#Variable declaration\n",
"v = 1440; #velocity of ultrasonic waves(m/s)\n",
"t = 0.83; #time elapsed(s)\n",
"\n",
"#Calculation\n",
"d = v*t; #distance travelled(m)\n",
"d1 = d/2; #depth of submarine(m)\n",
"\n",
"#Result\n",
"print \"depth of the submerged submarine is\",d1, \"m\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"depth of the submerged submarine is 597.6 m\n"
]
}
],
"prompt_number": 11
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.11, Page number 24"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the reverberation time of hall\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"aS = 1050; #total absorption inside hall(Sabine)\n",
"V = 9000; #volume of cinema hall(m**3)\n",
"\n",
"#Calculation\n",
"T = 0.165*V/aS; #reverberation time of hall(s)\n",
"T = math.ceil(T*10**4)/10**4; #rounding off to 4 decimals\n",
"\n",
"#Result\n",
"print \"reverberation time of the hall is\",T, \"s\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"reverberation time of the hall is 1.4143 s\n"
]
}
],
"prompt_number": 13
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.12, Page number 25"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the area of interior surface\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"a = 0.65; #average absorption coefficient(Sabine/m**2)\n",
"V = 13500; #volume of auditorium(m**3)\n",
"T = 1.2; #reverberation time of hall(s)\n",
"\n",
"#Calculation\n",
"S = 0.165*V/(a*T); #reverberation time of hall(s)\n",
"S = math.ceil(S*10)/10; #rounding off to 1 decimal\n",
"\n",
"#Result\n",
"print \"total area of interior surface is\",S, \"m**2\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"total area of interior surface is 2855.8 m**2\n"
]
}
],
"prompt_number": 14
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.13, Page number 25"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the new reverberation time of hall\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"V = 15000; #volume of cinema hall(m**3)\n",
"T1 = 1.3; #initial reverberation time of hall(s)\n",
"a1S1 = 300; #number of chairs placed\n",
"\n",
"#Calculation\n",
"aS = 0.165*V/T1; #total absorption of hall\n",
"T2 = (0.165*V)/(aS+a1S1); #reverberation time of hall after adding chairs(s)\n",
"T2 = math.ceil(T2*10**4)/10**4; #rounding off to 4 decimals\n",
"\n",
"#Result\n",
"print \"reverberation time of the hall after adding chairs is\",T2, \"s\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"reverberation time of the hall after adding chairs is 1.1231 s\n"
]
}
],
"prompt_number": 16
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.14, Page number 26"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the depth of a submerged submarine\n",
"\n",
"#Variable declaration\n",
"v = 1440; #velocity of ultrasonic waves(m/s)\n",
"t = 0.5; #time elapsed(s)\n",
"\n",
"#Calculation\n",
"d = v*t; #distance travelled(m)\n",
"d1 = d/2; #depth of submarine(m)\n",
"\n",
"#Result\n",
"print \"depth of the submerged submarine is\",int(d1), \"m\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"depth of the submerged submarine is 360 m\n"
]
}
],
"prompt_number": 17
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.15, Page number 26"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the velocity of waves\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"d = 0.4; #distance between 2 constructive antinodes(mm)\n",
"new = 1.5; #frequency of crystal(MHz)\n",
" \n",
"#Calculation\n",
"new = new*10**6; #frequency of crystal(Hz)\n",
"d = d*10**-3; #distance between 2 constructive antinodes(m)\n",
"#distance between 2 antinodes is given by lamda/2\n",
"lamda = 2*d; #wavelength of ultrasonic waves(m)\n",
"v = new*lamda; #velocity of waves(m/s)\n",
"\n",
"#Result\n",
"print \"velocity of waves is\",int(v), \"m/s\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"velocity of waves is 1200 m/s\n"
]
}
],
"prompt_number": 18
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 1.16, Page number 26"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#To calculate the natural frequency \n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"l = 40; #length of iron rod(mm)\n",
"E = 11.5*10**10; #Young's modulus(N/m**2)\n",
"rho = 7250; #density of pure iron(kg/m**3)\n",
"\n",
"#Calculation\n",
"l = l*10**-3; #length of iron rod(m)\n",
"new = (1/(2*l))*math.sqrt(E/rho); #natural frequency of the rod(Hz)\n",
"new = new*10**-3; #natural frequency of the rod(kHz)\n",
"new=math.ceil(new*10**3)/10**3; #rounding off to 3 decimals\n",
"\n",
"#Result\n",
"print \"depth of the submerged submarine is\",new, \"kHz\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"depth of the submerged submarine is 49.785 kHz\n"
]
}
],
"prompt_number": 19
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
|