summaryrefslogtreecommitdiff
path: root/647/CH1/EX1.8/Example1_8.sce
blob: a4906635af55cfc583cb232e13b30b5b9147ce7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clear;
clc;

// Example: 1.8
// Page: 11

// Solution

printf("Example: 1.8 - Page: 11\n\n");

//*****Data*****//
g = 9.81;// [m/square s]
Z = 100;//[m]
//***************//

// Basis: 1 kg of water
m = 1;// [kg]
Ep = m*g*Z;// [J]
printf("Change in potential Energy is %d J\n",Ep)