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

//Ex3_3(b).sce.

clc;
clear;
R=1;
L=1;
C=0.1;
//case (b)
s=0;
//Z=R+(L*s)+(1/(C*s))
Z=0;  //Z=s/(s^2+s+10)
//voltage across the resistancce and inductance are zero

Vc=100/(s^2+s+10);//simplified form of (10s/(s^2+s+10))/(0.1s)
printf("\n Voltage across the capacitance=%d volt",Vc)