summaryrefslogtreecommitdiff
path: root/3769/CH8/EX8.6/Ex8_6.sce
blob: 9356a41ea1ae76e7c6a29a0dd9ffc02b0335d498 (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//Given
u=10**-7
I=10*10**-2                       //A
r=0.5

//Calculation
B=u*I/r**2

//Result
printf("\n Magnetic field on Y axis is %0.3f  K^ T", B)