summaryrefslogtreecommitdiff
path: root/876/CH2/EX2.1/Ex2_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /876/CH2/EX2.1/Ex2_1.sce
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 '876/CH2/EX2.1/Ex2_1.sce')
-rwxr-xr-x876/CH2/EX2.1/Ex2_1.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/876/CH2/EX2.1/Ex2_1.sce b/876/CH2/EX2.1/Ex2_1.sce
new file mode 100755
index 000000000..4bd2dc408
--- /dev/null
+++ b/876/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,13 @@
+//caption:Find maximum and minimum value of resistor
+//Ex2.1
+clc
+clear
+close
+R=100//magnitude of resistor(in ohm)
+Lmin=-5//minimum limiting error(in %)
+Lmax=5//maximum limiting error(in %)
+Le=(R*Lmax)/100
+Rmax=R+Le
+disp(Rmax,'maximum value of resistor(in ohm)=')
+Rmin=R-Le
+disp(Rmin,'minimum value of resistor(in ohm)=') \ No newline at end of file