summaryrefslogtreecommitdiff
path: root/2096/CH1/EX1.3.b
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2096/CH1/EX1.3.b
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2096/CH1/EX1.3.b')
-rwxr-xr-x2096/CH1/EX1.3.b/ex_1_3_b.sce12
1 files changed, 12 insertions, 0 deletions
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)+" %")