summaryrefslogtreecommitdiff
path: root/656/CH1/EX1.1/example1_1.sce
blob: f92b8fdf096d41ebd38937a6eb350029de02d7db (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
25
26
27
28
29
// e be the electron charge in coulombs (c)
e=-1.6*10^-19;
 
// n be the no. of electrons
 
n=4600;
 
//total charge q in coulombs (c)
 
q=n*e;


disp("q=")
disp(q)
units='coulombs C'; 
q1=[string(q) units]; 
disp(q1)
// In coulombs


// the total charge is -7.36*10^-16 coulombs