summaryrefslogtreecommitdiff
path: root/165/CH13/EX13.1/ex13_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '165/CH13/EX13.1/ex13_1.sce')
-rw-r--r--165/CH13/EX13.1/ex13_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/165/CH13/EX13.1/ex13_1.sce b/165/CH13/EX13.1/ex13_1.sce
new file mode 100644
index 000000000..0e0d5c4f7
--- /dev/null
+++ b/165/CH13/EX13.1/ex13_1.sce
@@ -0,0 +1,12 @@
+//Example 13.1
+clc;
+
+R=5000; //Total resisrence of POT
+Vt=5; //Potential applied
+ssl=3; //Shaft stroke length in inches
+w_at=0.9; //wiper is at 0.9 inch
+//value of R2
+R2=w_at*R/ssl;
+R1=R-R2; //Given R = R1 + R2
+Vo=Vt*R2/(R1+R2);
+printf('\nValue of output voltage is %.2f V\n',Vo) \ No newline at end of file