From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2096/CH1/EX1.3.b/ex_1_3_b.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 2096/CH1/EX1.3.b/ex_1_3_b.sce (limited to '2096/CH1/EX1.3.b') diff --git a/2096/CH1/EX1.3.b/ex_1_3_b.sce b/2096/CH1/EX1.3.b/ex_1_3_b.sce new file mode 100755 index 000000000..f10e2ca23 --- /dev/null +++ b/2096/CH1/EX1.3.b/ex_1_3_b.sce @@ -0,0 +1,12 @@ + +// Example 1.3.b : relative error +clc, clear +// given : +vm=2.65; // in volts +vt=2.70; // in volts +v=5;// full scale range of voltage +Es=vm-vt; +Er1=Es/vt; +Er2=Es/v; +disp("relative error as a function of true value is "+string(Er1)+" or "+string(100*Er1)+" %") +disp("relative error as a function of full scale deflection is "+string(Er2)+" or "+string(100*Er2)+" %") -- cgit