summaryrefslogtreecommitdiff
path: root/1991/CH2/EX2.20/20.sce
blob: 95e0422af153b7fc761331064b8a9f5c05ad6c2b (plain)
1
2
3
4
5
6
7
8
9
10
clc
clear
//input
v=3*10^5//orbit speed
r=4.6*10^20//distance
g1=6.7*10^-11
//calculation of mass
m=v*v*r/g1 //Newtons law
//output
printf("the mass is %2.3e kg",m)