summaryrefslogtreecommitdiff
path: root/1445/CH1/EX1.8/Ex1_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '1445/CH1/EX1.8/Ex1_8.sce')
-rw-r--r--1445/CH1/EX1.8/Ex1_8.sce3
1 files changed, 2 insertions, 1 deletions
diff --git a/1445/CH1/EX1.8/Ex1_8.sce b/1445/CH1/EX1.8/Ex1_8.sce
index 5f83da65a..ff5151f01 100644
--- a/1445/CH1/EX1.8/Ex1_8.sce
+++ b/1445/CH1/EX1.8/Ex1_8.sce
@@ -1,6 +1,7 @@
//CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS
//Example 8
+clc;
disp("CHAPTER 1");
disp("EXAMPLE 8");
@@ -21,6 +22,6 @@ A=[5/2 -1;-1 7/2];
b=[2;2];
x=inv(A)*b;
x=x(2,:);
-disp(sprintf("The current in 2Ω resistor is %.2f A",x));
+disp(sprintf("The current in 2Ω resistor is %f A",x));
//END