summaryrefslogtreecommitdiff
path: root/24/CH29/EX29.2/Example29_2.sce
blob: 6c36cdf4578975d53690c31f080ea0b960c0bd13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Given that
d = 1.5*10^-2  //in meter
v = 4.0  //in m/s
B = 0.050  //in T

//Sample Problem 29-2a
printf("**Sample Problem 29-2a**\n")
//force is in right direction
printf("The right surface will be at high potential\n")

//Sample Problem 29-2b
printf("\n**Sample Problem 29-2b**\n")
F = v*B  //force per unit charge
deltaU = d*F  //energy per unit charge = potential difference
printf("The potential difference between the two surface is %1.1eV", deltaU)