blob: a67c23e4cad61180c59f71618f4867fdb65774ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//To Calculate the Energy Stored in the Inductor
//Example 38.7
clear;
clc;
L=50*10^-3;//Self Inductance of Inductor in Henry
i=2;//Cuurent passed through inductor in Amperes
U=0.5*L*i^2;//Energy stored in the Inductor
printf("Energy stored in the inductor = %.2f J",U);
|