From 7bc77cb1ed33745c720952c92b3b2747c5cbf2df Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Sat, 3 Feb 2018 11:01:52 +0530 Subject: Added new code --- 3871/CH3/EX3.17/Ex3_17.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 3871/CH3/EX3.17/Ex3_17.sce (limited to '3871/CH3/EX3.17') diff --git a/3871/CH3/EX3.17/Ex3_17.sce b/3871/CH3/EX3.17/Ex3_17.sce new file mode 100644 index 000000000..2623a1f4b --- /dev/null +++ b/3871/CH3/EX3.17/Ex3_17.sce @@ -0,0 +1,23 @@ +//=========================================================================== +//chapter 3 example 17 +clc; +clear all; + +//variable declaration +R1 = 500; //resistance in Ω +R2 = 615; //resistance in Ω +R3 = 100; //resistance in Ω +dR1 = 1; //limiting error(dR1/R1) in % +dR2 = 1; //limiting error(dR1/R1) in % +dR3 = 0.5; //limiting error(dR1/R1) in % + +//calculations +R4 = (R1*R2)/(R3); //unknown resistance in Ω +dR4 =dR1+dR2+dR3; //relative error of unknown resistance in % ranging - to + +e = R4*(dR4/(100)); //limitng error in Ω + +//result +mprintf("unknown resistance = %.2f Ω",R4); +mprintf("\nrelative error of unknown resistance ranging - to + = %3.2f percentage ",dR4); +mprintf("\nlimitng error = %3.2f Ω",e); + -- cgit