summaryrefslogtreecommitdiff
path: root/3710/CH10/EX10.4/Ex10_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3710/CH10/EX10.4/Ex10_4.sce')
-rw-r--r--3710/CH10/EX10.4/Ex10_4.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3710/CH10/EX10.4/Ex10_4.sce b/3710/CH10/EX10.4/Ex10_4.sce
new file mode 100644
index 000000000..c2fc11058
--- /dev/null
+++ b/3710/CH10/EX10.4/Ex10_4.sce
@@ -0,0 +1,15 @@
+//Example 10.4, Page Number 509
+//The Function fpround(dependency) is used to round a floating point number x to n decimal places
+//Sagnac Gyroscope Phase Shift
+clc;
+n=1000 //Turns on the Fibre
+r=0.1 //Radius in meter
+r2=15 //Earth's rotation rate per hour
+c=3*(10**8) //Speed of light in meters per second
+l=1*(10**-6) //Wavelength in meter
+r1=(r2*%pi)/(180*3600) //Conversion to radian per second
+
+theta=(8*%pi*n*%pi*(r**2)*r1)/(l*c) //theta is the phase shift
+theta=fpround(theta,5)
+
+mprintf("The Phase Shift in Sagnac Gyroscope is:%0.1e radian",theta);