summaryrefslogtreecommitdiff
path: root/2459/CH9/EX9.7/Ex9_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '2459/CH9/EX9.7/Ex9_7.sce')
-rw-r--r--2459/CH9/EX9.7/Ex9_7.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2459/CH9/EX9.7/Ex9_7.sce b/2459/CH9/EX9.7/Ex9_7.sce
new file mode 100644
index 000000000..b5e10407a
--- /dev/null
+++ b/2459/CH9/EX9.7/Ex9_7.sce
@@ -0,0 +1,16 @@
+//chapter9
+//example9.7
+//page148
+
+V=10 // V
+V_D=0.7 // V
+R_BC=2 // kilo ohm
+R=2 // kilo ohm
+
+// by Kirchoff voltage law we get
+// -V_D-I_D*R_BC-2*I_D*R+V=0 thus making I_D as subject we get
+I_D=(V-V_D)/(R_BC+2*R)
+V_Q=2*I_D*R
+
+printf("I_D = %.3f mA \n",I_D)
+printf("V_Q = %.3f V \n",V_Q)