summaryrefslogtreecommitdiff
path: root/3769/CH8/EX8.12/Ex8_12.sce
blob: fee128301d082b19fca45083ea583db83f768145 (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//Given
r=0.02             //m
u=4*3.14*10**-7                     //T/A m
I=12                                  //A

//Calculation
B=u*I/(4*r)

//Result
printf("\n The magnitude of magnetic field is %0.2f  *10**-4 T",B*10**4)