summaryrefslogtreecommitdiff
path: root/995/CH2/EX2.28/Ex2_28.sce
blob: a0e86b0d912926697e65bb78a36ae53b0dd37895 (plain)
1
2
3
4
5
6
7
8
//Ex:2.28
clc;
clear;
close;
E=2.5;//energy in joules
L=20*10^-3;//in henry
I=sqrt(E/(0.5*L));
printf("Current = %f A",I);