From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3753/CH2/EX2.1/Ex2_1.sce | 15 +++++++++++++++ 3753/CH2/EX2.10/Ex2_10.sce | 14 ++++++++++++++ 3753/CH2/EX2.2/Ex2_2.sce | 10 ++++++++++ 3753/CH2/EX2.3/Ex2_3.sce | 16 ++++++++++++++++ 3753/CH2/EX2.4/Ex2_4.sce | 15 +++++++++++++++ 3753/CH2/EX2.5/Ex2_5.sce | 14 ++++++++++++++ 3753/CH2/EX2.6/Ex2_6.sce | 13 +++++++++++++ 3753/CH2/EX2.7/Ex2_7.sce | 19 +++++++++++++++++++ 3753/CH2/EX2.8/Ex2_8.sce | 16 ++++++++++++++++ 3753/CH2/EX2.9/Ex2_9.sce | 14 ++++++++++++++ 10 files changed, 146 insertions(+) create mode 100644 3753/CH2/EX2.1/Ex2_1.sce create mode 100644 3753/CH2/EX2.10/Ex2_10.sce create mode 100644 3753/CH2/EX2.2/Ex2_2.sce create mode 100644 3753/CH2/EX2.3/Ex2_3.sce create mode 100644 3753/CH2/EX2.4/Ex2_4.sce create mode 100644 3753/CH2/EX2.5/Ex2_5.sce create mode 100644 3753/CH2/EX2.6/Ex2_6.sce create mode 100644 3753/CH2/EX2.7/Ex2_7.sce create mode 100644 3753/CH2/EX2.8/Ex2_8.sce create mode 100644 3753/CH2/EX2.9/Ex2_9.sce (limited to '3753/CH2') diff --git a/3753/CH2/EX2.1/Ex2_1.sce b/3753/CH2/EX2.1/Ex2_1.sce new file mode 100644 index 000000000..1845d07b6 --- /dev/null +++ b/3753/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,15 @@ +//Example number 2.1, Page number 2.33 + + +clc;clear;close + +// Variable declaration +I=1/2 // unitless + +// Calculation +theta1=acos(1/sqrt(2))*(180/%pi) // radian +theta2=acos(-1/sqrt(2))*(180/%pi) // radian +// Result +printf("theta=%.f degrees",theta1) +printf("\ntheta=%.f degrees",theta2) +printf("\n\n The value of theta can be +(or)- 45 degrees and +(or)-135 degrees.") diff --git a/3753/CH2/EX2.10/Ex2_10.sce b/3753/CH2/EX2.10/Ex2_10.sce new file mode 100644 index 000000000..9034dad22 --- /dev/null +++ b/3753/CH2/EX2.10/Ex2_10.sce @@ -0,0 +1,14 @@ +//Example number 2.10, Page number 2.35 + + +clc;clear;close + +// Variable declaration +v=1500 // in m/s +t=1.33 // in s + +// Calculation +d=(v*t)/2 // in m + +// Result +printf("The depth of the sea = %.1f m",d) diff --git a/3753/CH2/EX2.2/Ex2_2.sce b/3753/CH2/EX2.2/Ex2_2.sce new file mode 100644 index 000000000..3cbac64cb --- /dev/null +++ b/3753/CH2/EX2.2/Ex2_2.sce @@ -0,0 +1,10 @@ +//Example number 2.2, Page number 2.33 + + +clc;clear;close + +// Calculation +ip=atan(1.732)*(180/%pi) // radian + +// Result +printf("ip=%.f degrees",ip) diff --git a/3753/CH2/EX2.3/Ex2_3.sce b/3753/CH2/EX2.3/Ex2_3.sce new file mode 100644 index 000000000..23791e887 --- /dev/null +++ b/3753/CH2/EX2.3/Ex2_3.sce @@ -0,0 +1,16 @@ +//Example number 2.3, Page number 2.33 + + +clc;clear;close + +// Variable declaration +d=1*10**-3 // in m +lamda=6000*10**-10 // in m +nd=0.01 // difference between the refractive indices(n1 - n2) + +// Calculation +phi=(2*%pi*d*nd)/lamda // radian + +// Result +printf("phi=%.1f radian",phi) +printf("\n\nSince the phase difference should be with in 2pi radius, we get phi=4.169 rad.") diff --git a/3753/CH2/EX2.4/Ex2_4.sce b/3753/CH2/EX2.4/Ex2_4.sce new file mode 100644 index 000000000..5915f4a3a --- /dev/null +++ b/3753/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,15 @@ +//Example number 2.4, Page number 2.33 + + +clc;clear;close + +// Variable declaration +lamda=5000*10**-10 // in m +mu_0=1.5533 // unitless +mu_1=1.5442// unitless + +// Calculations +t=lamda/(2*(mu_0 - mu_1)) // in m + +// Result +printf("Thickness,t=%0.2f micro m",(t*10**6)) diff --git a/3753/CH2/EX2.5/Ex2_5.sce b/3753/CH2/EX2.5/Ex2_5.sce new file mode 100644 index 000000000..ad943c26d --- /dev/null +++ b/3753/CH2/EX2.5/Ex2_5.sce @@ -0,0 +1,14 @@ +//Example number 2.5, Page number 2.34 + + +clc;clear;close + +// Variable declaration +lamda=6000*10**-10 // in m +t=0.003*10**-2 // in m + +// Calculations +delta_mu=lamda/(4*t) // unitless + +// Result +printf("Birefringence of the crystal delta/mu=%0.3f",delta_mu) diff --git a/3753/CH2/EX2.6/Ex2_6.sce b/3753/CH2/EX2.6/Ex2_6.sce new file mode 100644 index 000000000..dee5aa0ca --- /dev/null +++ b/3753/CH2/EX2.6/Ex2_6.sce @@ -0,0 +1,13 @@ +//Example number 2.6, Page number 2.34ΒΆ + + +clc;clear;close + +// Variable declaration +theta=60*(%pi/180) // When the angle of refraction is 30degrees, angle of reflection will be 60degrees + +// Calculation +mu=tan(theta) // unitless + +// Result +printf("Refractive index of medium=%0.3f",mu) diff --git a/3753/CH2/EX2.7/Ex2_7.sce b/3753/CH2/EX2.7/Ex2_7.sce new file mode 100644 index 000000000..af2e38a7c --- /dev/null +++ b/3753/CH2/EX2.7/Ex2_7.sce @@ -0,0 +1,19 @@ +//Example number 2.7, Page number 2.34 + + +clc;clear;close + +// Variable declaration +m=1 // unitless +lamda_l=6000*10**-10 // in m +theta=0.046*(%pi/180) // radian +n=2*10**6// unitless + +// Calculation +lamda_s=(m*lamda_l)/(sin(theta)) // in m +v=n*lamda_s // in m/s + +// Result +printf("Ultrasonic wavelength,lamda s =%0.2e m",(lamda_s)) +printf("\nVelocity of ultrasonic waves in liquid = %0.f ms^-1",v) +// Answer varies due to rounding of numbers diff --git a/3753/CH2/EX2.8/Ex2_8.sce b/3753/CH2/EX2.8/Ex2_8.sce new file mode 100644 index 000000000..f12011849 --- /dev/null +++ b/3753/CH2/EX2.8/Ex2_8.sce @@ -0,0 +1,16 @@ +//Example number 2.8, Page number 2.35 + + +clc;clear;close + +// Variable declaration +C=1500 // in m +Df=267// unitless +f=2*10**6 +theta=0*%pi/180 // degrees + +// Calculation +V=(C*Df)/(2*f*cos(theta)) // in m/s + +// Result +printf("Velocity of blood flow = %0.4f m-s^-1",V) diff --git a/3753/CH2/EX2.9/Ex2_9.sce b/3753/CH2/EX2.9/Ex2_9.sce new file mode 100644 index 000000000..5673711eb --- /dev/null +++ b/3753/CH2/EX2.9/Ex2_9.sce @@ -0,0 +1,14 @@ +//Example number 2.9, Page number 2.35 + +clc;clear;close + +// Variable declaration +t=0.7*10**-3 // in s +E=8.8*10**10 // V +rho=2800 // kg/m^3 + +// Calculation +f=(1/(2*t))*sqrt(E/rho) // Fundamental frequency + +// Result +printf("Fundamental frequency,f = %.e Hz",f) -- cgit