summaryrefslogtreecommitdiff
path: root/3753/CH2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3753/CH2
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3753/CH2')
-rw-r--r--3753/CH2/EX2.1/Ex2_1.sce15
-rw-r--r--3753/CH2/EX2.10/Ex2_10.sce14
-rw-r--r--3753/CH2/EX2.2/Ex2_2.sce10
-rw-r--r--3753/CH2/EX2.3/Ex2_3.sce16
-rw-r--r--3753/CH2/EX2.4/Ex2_4.sce15
-rw-r--r--3753/CH2/EX2.5/Ex2_5.sce14
-rw-r--r--3753/CH2/EX2.6/Ex2_6.sce13
-rw-r--r--3753/CH2/EX2.7/Ex2_7.sce19
-rw-r--r--3753/CH2/EX2.8/Ex2_8.sce16
-rw-r--r--3753/CH2/EX2.9/Ex2_9.sce14
10 files changed, 146 insertions, 0 deletions
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)