summaryrefslogtreecommitdiff
path: root/1301/CH4/EX4.9
diff options
context:
space:
mode:
Diffstat (limited to '1301/CH4/EX4.9')
-rwxr-xr-x1301/CH4/EX4.9/ex4_9.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1301/CH4/EX4.9/ex4_9.sce b/1301/CH4/EX4.9/ex4_9.sce
new file mode 100755
index 000000000..33ff823e8
--- /dev/null
+++ b/1301/CH4/EX4.9/ex4_9.sce
@@ -0,0 +1,13 @@
+clc;
+G=6.67*10^-11 //universal gravitational constant in Nm square/kg square.
+m1=5.98*10^24; //mass of earth in kg
+m2=7.36*10^22; //mass of moon in kg
+r=3.84*10^8; //radius of moon's orbit
+F=(G*m1*m2)/(r*r); //calculating gravitationalforce in Newton
+v=sqrt((G*m1)/r); //calculating velocity of moon in m/sec
+s=2*%pi*r; //calculating circumference of moon's orbit in metre
+t=s/v; //calculating time in sec
+disp(F,"Gravitational Force in Newton = "); //displaying gravitational force in Newton
+disp(v,"Velocity in metre/sec = "); //displaying velocity in metre
+disp(t,"Time in sec = "); //displaying time in sec.
+disp(t/86400,"Time in days = "); //displaying time in days \ No newline at end of file