summaryrefslogtreecommitdiff
path: root/1026/CH10/EX10.4/Example10_4.sce
blob: 3faf845793291c3b6d26232cd4a9234649bcd29a (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
//chapter10,Example10_4,pg 272

vx=1.7*10^7

Ey=3.4*10^4

x=3*10^-2

t=x/vx

//y=0.5*ay*(t^2)

ay=(e*Ey)/m

y=0.5*ay*(t^2)

Bz=Ey/vx

printf("verical displacement of electron \n")

printf("y=%.2f m",y)

printf("\nmagnitude of magnetic field\n")

printf("B=%.4f wb/m2",B)

printf("\ndirection of field is upward as Ey is downward")