summaryrefslogtreecommitdiff
path: root/2459/CH1/EX1.4/Ex1_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2459/CH1/EX1.4/Ex1_4.sce')
-rw-r--r--2459/CH1/EX1.4/Ex1_4.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2459/CH1/EX1.4/Ex1_4.sce b/2459/CH1/EX1.4/Ex1_4.sce
new file mode 100644
index 000000000..ea879a23d
--- /dev/null
+++ b/2459/CH1/EX1.4/Ex1_4.sce
@@ -0,0 +1,11 @@
+//chapter1
+//example1.4
+//page12
+
+I=6 // mA
+R=2 // kilo ohm
+
+V=I*R // by ohm law
+printf("voltage of voltage source = %.3f V",V)
+
+// this voltage source when connected in series with 2000 ohm gives equivalent voltage source for the given constant current source