summaryrefslogtreecommitdiff
path: root/1301/CH14/EX14.8/ex14_8.sce
blob: 143d5f4de03c129a61d21a5cc7e11cac7283ed7c (plain)
1
2
3
4
5
6
clc;
K=2*10^-7;        //constant in N/A square
I=100;            //current in Ampere
s=5;              //distance in m
B=(K*I)/s;       //calculating magnitude of field
disp(B,"Magnitude of field in Tesla = ");    //displaying result