blob: 0bfc9f3d355d3bb3c3ecc331b6edf72b1b73deed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear
//
//Initialization
l1=10 //Inductance in henry
l2=20 //Inductance in henry
//Calculation
ls1=l1+l2 //Inductance in henry
lp=((l1*l2)*(l1+l2)**-1) //Inductance in henry
//Results
printf("\n (a) Inductance in series,L = %d uH",ls1)
printf("\n (b) Inductance in parallel,L = %.2f uH",lp)
|