blob: fcc480314a6e36b4a3d4cae3e66737c7facc96ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Chapter-4, Example 4.11, Page 137
//=============================================================================
clc
clear
//INPUT DATA
I1=5;//current in A
I=10;//current in A
I2=I/sqrt(2);
//CALCULATIONS
i3=sqrt(((2*I1)^2)+(I2^2));
mprintf("rms value of current is %1.2f A respectively\n",i3);
//=================================END OF PROGRAM==============================
|