summaryrefslogtreecommitdiff
path: root/1445/CH2/EX2.24
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /1445/CH2/EX2.24
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '1445/CH2/EX2.24')
-rw-r--r--1445/CH2/EX2.24/Ex2_24.sce9
1 files changed, 5 insertions, 4 deletions
diff --git a/1445/CH2/EX2.24/Ex2_24.sce b/1445/CH2/EX2.24/Ex2_24.sce
index ceb0d8ce0..7d2c67727 100644
--- a/1445/CH2/EX2.24/Ex2_24.sce
+++ b/1445/CH2/EX2.24/Ex2_24.sce
@@ -1,6 +1,7 @@
//CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT
//Example 22 // read it as example 23 in the book on page 2.77
+clc;
disp("CHAPTER 2");
disp("EXAMPLE 24");
@@ -17,11 +18,11 @@ rms=Im/2;
Iav=Im/%pi; //average current
ff=rms/Iav;
disp("SOLUTION");
-disp(sprintf("RMS value of current is %3.0f A", rms));
-disp(sprintf("Average value of current is %3.2f A", Iav));
-disp(sprintf("Form Factor of current is %3.2f A", ff));
+disp(sprintf("RMS value of current is %3f A", rms));
+disp(sprintf("Average value of current is %3f A", Iav));
+disp(sprintf("Form Factor of current is %3f A", ff));
disp(" ");
-//
+
//END