1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//chapter10,Example10_12,pg 276 l=5*10^-2 d=0.3//distance of screen from end of mag. field D=d+(l/2) y=0.01 m=9.1*10^-31 e=1.6*10^-19 Va=1000 B=(y/(D*l))*sqrt((2*m*Va)/e) printf("flux density\n") printf("B=%.8f Wb/m2",B)