summaryrefslogtreecommitdiff
path: root/1217/CH9/EX9.4/Exa9_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1217/CH9/EX9.4/Exa9_4.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 '1217/CH9/EX9.4/Exa9_4.sce')
-rwxr-xr-x1217/CH9/EX9.4/Exa9_4.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1217/CH9/EX9.4/Exa9_4.sce b/1217/CH9/EX9.4/Exa9_4.sce
new file mode 100755
index 000000000..152935f8a
--- /dev/null
+++ b/1217/CH9/EX9.4/Exa9_4.sce
@@ -0,0 +1,21 @@
+//Exa 9.4
+clc;
+clear;
+close;
+//given data
+//for the given IC LM317:
+Iadj=100;//in micro amperes
+Vref=1.25;//in volts
+R1=240;//in ohms
+//(i) For Vo=2 volts
+//on solving equation Vo=Vref(1+R2/R1)+R2*Iadj
+Vo=2;//in volts
+R2=(Vo-Vref)/((Vref/R1)+Iadj*10^-6);
+disp(R2,"for Output 2 volts the requires value of resistance R2(in ohms) : ")
+//(i) For Vo=12 volts
+Vo1=12;//in volts
+//on solving equation Vo=Vref(1+R2/R1)+R2*Iadj
+R21=(Vo1-Vref)/(Vref/R1+Iadj*10^-6);
+disp(R21,"for Output 12 volts the requires value of resistance R2(in ohms) : ")
+//use potentiometer for adjustable value
+disp("Hence use 3kohm potentiometer to set R2.") \ No newline at end of file