blob: 6f210a1b7a08958bb10b8bc908cf6d3c653d4618 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Chapter 5, Example 5.5
clc
//Initialisation'
L1=10 //inductance
L2=20 //inductance
//Calculation
Ls=L1+L2 //inductance in series
Lp=(L1*L2)/(L1+L2) //inductance in parallel
//Results
printf("(a) Inductance in Series Ls = %d H\n",Ls)
printf("(b) Inductance in Parallel Lp = %.2f H\n",Lp)
|