summaryrefslogtreecommitdiff
path: root/132/CH4/EX4.3.c/Example4_3_c.sce
blob: 49eb462345d3a390c7706b61185350428afa5f50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example 4.3(c)
//Program to determine the RMS Value of Current
clear;
clc ;
close ;
//Given Circuit Data
Rl=1*10^(3); //Ohms
rd=10; //Ohms
Vm=220; //Volts(Peak Value of Voltage)
//Calculation
Im=Vm/(rd+Rl);//Peak Value of Current
Irms=Im/sqrt(2);//RMS Value of Current
//Displaying The Results in Command Window
printf("\n\t The RMS Value of Current is = %f mA .",Irms/10^(-3));