diff options
Diffstat (limited to '1445/CH1/EX1.57/Ex1_57.sce')
-rw-r--r-- | 1445/CH1/EX1.57/Ex1_57.sce | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/1445/CH1/EX1.57/Ex1_57.sce b/1445/CH1/EX1.57/Ex1_57.sce index 7c117b894..7c81c7f70 100644 --- a/1445/CH1/EX1.57/Ex1_57.sce +++ b/1445/CH1/EX1.57/Ex1_57.sce @@ -1,6 +1,7 @@ //CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS //Example 57 +clc; disp("CHAPTER 1"); disp("EXAMPLE 57"); @@ -25,9 +26,9 @@ I2=v2/r3; I_tot=I1+I2; if(I_tot>0) -disp(sprintf("The value of I is %.2f A (upward)",I_tot)); +disp(sprintf("The value of I is %f A (upward)",I_tot)); else -disp(sprintf("The value of I is %.2f A (downward)",-I_tot)); +disp(sprintf("The value of I is %f A (downward)",-I_tot)); //END |