summaryrefslogtreecommitdiff
path: root/3554/CH17/EX17.3/Ex17_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3554/CH17/EX17.3/Ex17_3.sce')
-rw-r--r--3554/CH17/EX17.3/Ex17_3.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3554/CH17/EX17.3/Ex17_3.sce b/3554/CH17/EX17.3/Ex17_3.sce
new file mode 100644
index 000000000..00703a724
--- /dev/null
+++ b/3554/CH17/EX17.3/Ex17_3.sce
@@ -0,0 +1,18 @@
+// Exa 17.3
+
+clc;
+clear all;
+
+// Given data
+
+Vin=5;// Input voltage(Volts)
+Rin=2.5;// k Ohms
+Rf=1;//k Ohms
+
+// Solution
+
+Iin=Vin/Rin;//Input current(mA)
+If=Iin;
+Vout=-If*Rf;
+
+printf('The output voltage = %d Volts \n',Vout);