summaryrefslogtreecommitdiff
path: root/1445/CH1/EX1.4/Ex1_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /1445/CH1/EX1.4/Ex1_4.sce
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/CH1/EX1.4/Ex1_4.sce')
-rw-r--r--1445/CH1/EX1.4/Ex1_4.sce7
1 files changed, 4 insertions, 3 deletions
diff --git a/1445/CH1/EX1.4/Ex1_4.sce b/1445/CH1/EX1.4/Ex1_4.sce
index b8847eae1..a3f805dc5 100644
--- a/1445/CH1/EX1.4/Ex1_4.sce
+++ b/1445/CH1/EX1.4/Ex1_4.sce
@@ -1,6 +1,7 @@
//CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS
//Example 4
+clc;
disp("CHAPTER 1");
disp("EXAMPLE 4");
@@ -23,19 +24,19 @@ req3=req2+(r4+r5);
req4=(req3*r6)/(req3+r6);
req5=req4+r7;
req6=(req5*r8)/(req5+r8);
-disp(sprintf("The eqiuvalent resistance between points a and b is %.2f Ω",req6));
+disp(sprintf("The equivalent resistance between points a and b is %f Ω",req6));
//To find resistance between c and d
req7=r7+r8;
req8=(req7*r6)/(req7+r6);
req9=req2+r5+req8;
req10=(req9*r4)/(req9+r4);
-disp(sprintf("The eqiuvalent resistance between points c and d is %.2f Ω",req10));
+disp(sprintf("The equivalent resistance between points c and d is %f Ω",req10));
//To find resistance between d and e
req11=req2+r4+r5;
req12=(req11*r6)/(req11+r6);
req13=(req12*req7)/(req12+req7);
-disp(sprintf("The eqiuvalent resistance between points d and e is %.2f Ω",req13));
+disp(sprintf("The equivalent resistance between points d and e is %f Ω",req13));
//END