summaryrefslogtreecommitdiff
path: root/135/CH5/EX5.13
diff options
context:
space:
mode:
Diffstat (limited to '135/CH5/EX5.13')
-rwxr-xr-x135/CH5/EX5.13/EX13.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/135/CH5/EX5.13/EX13.sce b/135/CH5/EX5.13/EX13.sce
new file mode 100755
index 000000000..a35eafd8e
--- /dev/null
+++ b/135/CH5/EX5.13/EX13.sce
@@ -0,0 +1,18 @@
+// Example 5.13: (i) R1
+// (ii) R1 for IC = 10 μA
+clc, clear
+IC=1e-3; // in amperes
+VCC=10; // in volts
+bta=125;
+VBE=0.7; // in volts
+
+disp("Part (i)");
+R1=bta*(VCC-VBE)/((bta+2)*IC); // in ohms
+R1=R1*1e-3; // in kilo-ohms
+disp(R1,"R1 (kΩ) =");
+
+disp("Part (i)");
+IC=10e-6; // in amperes
+R1=bta*(VCC-VBE)/((bta+2)*IC); // in ohms
+R1=R1*1e-3; // in kilo-ohms
+disp(R1,"R1 for (IC = 10 μA) (kΩ) ="); \ No newline at end of file