summaryrefslogtreecommitdiff
path: root/656/CH1/EX1.6/example1_6.sce
blob: 15db243877139eb918318a141d6fbf2bf6f6921f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
p=100;  
 
t=2*3600;

disp("t=")
disp(t)
// in seconds
disp("sec")

 
e=p*t;

disp("e=")
disp(e)
units='Joules J'
e1=[string(e) units];
disp(e1)
// in joules


// energy is 720000joules