From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 1445/CH1/EX1.5/Ex1_5.sce | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '1445/CH1/EX1.5/Ex1_5.sce') diff --git a/1445/CH1/EX1.5/Ex1_5.sce b/1445/CH1/EX1.5/Ex1_5.sce index 01fbb7a42..bb6f8c279 100644 --- a/1445/CH1/EX1.5/Ex1_5.sce +++ b/1445/CH1/EX1.5/Ex1_5.sce @@ -1,6 +1,7 @@ //CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS //Example 5 +clc; disp("CHAPTER 1"); disp("EXAMPLE 5"); @@ -18,7 +19,7 @@ req1=r1+r2; req2=r1+r4; req3=(req1*r1)/(req1+r1); rac=(req3*req2)/(req3+req2); -disp(sprintf("The eqiuvalent resistance between points a and c is %.2f Ω",rac)); +disp(sprintf("The eqiuvalent resistance between points a and c is %f Ω",rac)); //To find resistance between b and d //converting delta abc into star with points a, b and c @@ -34,6 +35,6 @@ rc=(rbc*rac)/r; req5=rb+rac; req6=rc+8; rbd=ra+((req5*req6)/(req5+req6)); -disp(sprintf("The eqiuvalent resistance between points b and d is %.2f Ω",rbd)); +disp(sprintf("The eqiuvalent resistance between points b and d is %f Ω",rbd)); //END -- cgit