summaryrefslogtreecommitdiff
path: root/3836/CH20/EX20.2/Ex20_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH20/EX20.2/Ex20_2.sce')
-rw-r--r--3836/CH20/EX20.2/Ex20_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3836/CH20/EX20.2/Ex20_2.sce b/3836/CH20/EX20.2/Ex20_2.sce
new file mode 100644
index 000000000..28d710695
--- /dev/null
+++ b/3836/CH20/EX20.2/Ex20_2.sce
@@ -0,0 +1,14 @@
+clear
+//
+
+//Introduction
+idd=4*10**-3 //current in ampere
+vo=8 //voltage
+vdd=12 //voltage
+
+//Calculation
+Rd=vo*(vdd-idd)**-1
+
+//Result
+printf("\n Rd = %.2f kOhm",Rd)
+