summaryrefslogtreecommitdiff
path: root/3369/CH4/EX4.9/Ex4_9.sce
blob: 121fb59c9ad73560ddf8b7550f282926fadc4d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Chapter 4, Exmaple 9, page 144
//Claculate distance and voltage
clc
clear
a = 39.8 // alpha
Y = 0.0354 // corfficient
p = 0.133 // kPa
Ep = 12000 // E/P , unit : V/m*kPa

d = (1/a)*(log(1/Y + 1)) // distance
E = Ep*p
V = E*d

printf("\n Distance = %f m",d)
printf("\n E = %f V/m",E)
printf("\n Volatge  = %f V",V)

//Answers may vary due to round off error