summaryrefslogtreecommitdiff
path: root/3802/CH5/EX5.14/Ex5_14.sce
blob: a77dfd1b52d7153eed78955a6b382f651d36b123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//Book Name:Fundamentals of Electrical Engineering
//Author:Rajendra Prasad
//Publisher: PHI Learning Private Limited
//Edition:Third ,2014

//Ex5_14.sce.

clc;
clear;
V=200;
i=0.2;
T=3e-3;
t=3e-3;

R=(V/i)*(1-exp(-t/T));
I=V/R;
printf("\n The final steady state value of current=%1.3f A \n",I)

L=R*T;
printf("\n Inductance=%1.3f H \n",L)
printf("\n Resistance=%3.0f ohm \n",R)

E=(L*I^2)/2;
printf("\n Energy stored when current reached its final value=%1.3f J",E)