summaryrefslogtreecommitdiff
path: root/2459/CH1/EX1.1/Ex1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2459/CH1/EX1.1/Ex1_1.sce')
-rw-r--r--2459/CH1/EX1.1/Ex1_1.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2459/CH1/EX1.1/Ex1_1.sce b/2459/CH1/EX1.1/Ex1_1.sce
new file mode 100644
index 000000000..78551dda3
--- /dev/null
+++ b/2459/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,14 @@
+//chapter 1
+//example 1.1
+//page8
+
+Eg=24 // V
+Ri=.01 // ohm
+P=100 // W
+
+I=P/Eg // we know that P=Eg*I since for ideal source, V is equivalent to Eg
+Vi=I*Ri
+V=Eg-(I*Ri)
+
+printf("voltage drop in internal resistance = %.3f V \n",Vi)
+printf("terminal voltage = %.3f V",V)