summaryrefslogtreecommitdiff
path: root/2780/CH10/EX10.2/Ex10_2.sce
blob: 65c72d7e23e26265ef43a86d7423791d189d0306 (plain)
1
2
3
4
5
6
7
clc
//to calculate current should be sent through the solenoid
l=.10 //length in m
N=50 //number of turns
H=5*10^3 //magnetising field in A/m
i=H*l/N 
disp("current is i="+string(i)+"A")