summaryrefslogtreecommitdiff
path: root/3648/CH7/EX7.11/Ex7_11.sce
blob: 3cf5fffb1490fbbb8ed4b9a3b910fe7d20a9b6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 7_11
clc();
clear;
//To find the mass of the sun
t=3.15*10^7   //units in sec
r=1.5*10^11   //units in meters
v=(2*%pi*r)/t   //units in meters/sec
G=6.67*10^-11   //units in Newtons
ms=(v^2*r)/G         //Units in Kg
printf("The mass of the sun is Ms=")
disp(ms)
printf("Kg")