summaryrefslogtreecommitdiff
path: root/1967/CH1/EX1.4/1_4.sce
blob: e5b1add60d0be65a1df4c71df73b14c58ff3d589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc
//initialisation of variables
clear
v= 1 //lit
p= 1 //atm
h= 76 //cm
d= 13.595 //kg/cm^3
g= 980.66 //dunes cm^-2
j= 4.18 //joules
//CALCULATIONS
W= v*p
W1= h*d*g
W2= W1*10^-4
W3= W2/j
//RESULTS
printf ('Work done in lit-atm = %.f lit-atm',W)
printf ('\n Work done in dynes = %.2e dynes cm^-2',W1)
printf ('\n Work done in ergs = %.2e ergs',W2)
printf ('\n Work done in calories = %.2f calories',W3)