summaryrefslogtreecommitdiff
path: root/3836/CH6/EX6.1
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH6/EX6.1')
-rw-r--r--3836/CH6/EX6.1/Ex6_1.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3836/CH6/EX6.1/Ex6_1.sce b/3836/CH6/EX6.1/Ex6_1.sce
new file mode 100644
index 000000000..15706b948
--- /dev/null
+++ b/3836/CH6/EX6.1/Ex6_1.sce
@@ -0,0 +1,16 @@
+clear
+//Initialisation
+Ri=1000 //Input Resistance of amplifier in Ohm
+Rs=100 //Output Resistance of sensor in Ohm
+Rl=50 //Load Resistance
+Ro=10 //Output Resistance of amplifier in Ohm
+Av=10 //Voltage gain
+Vs=2 //Sensor voltage
+
+//Calculation
+Vi=Ri*Vs*(Rs+Ri)**-1 //Input Voltage of Amplifier
+Vo=Av*Vi*Rl*(Ro+Rl)**-1 //Output Voltage of Amplifier
+
+//Result
+printf("\n Ouput voltage of and amplifier = %.1f V",Vo)
+