summaryrefslogtreecommitdiff
path: root/3637/CH2/EX2.4/Ex2_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3637/CH2/EX2.4/Ex2_4.sce')
-rw-r--r--3637/CH2/EX2.4/Ex2_4.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3637/CH2/EX2.4/Ex2_4.sce b/3637/CH2/EX2.4/Ex2_4.sce
new file mode 100644
index 000000000..d7b0c848b
--- /dev/null
+++ b/3637/CH2/EX2.4/Ex2_4.sce
@@ -0,0 +1,11 @@
+//problem 4 pagenumber 2.87
+//given
+format(6);
+r1=10e3;//ohm
+rf1=20e3;//ohm
+r2=5e3;//ohm
+//determine gain of amplifier
+a1=1+rf1/r1;
+a2=-rf1/r1;
+disp( 'Switch off gain = '+string(a1+a2));//no unit
+disp( 'Switch on gain = '+string(a2));//no unit