summaryrefslogtreecommitdiff
path: root/1430/CH1/EX1.4/exa1_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1430/CH1/EX1.4/exa1_4.sce')
-rw-r--r--1430/CH1/EX1.4/exa1_4.sce6
1 files changed, 6 insertions, 0 deletions
diff --git a/1430/CH1/EX1.4/exa1_4.sce b/1430/CH1/EX1.4/exa1_4.sce
new file mode 100644
index 000000000..fea2ed7bc
--- /dev/null
+++ b/1430/CH1/EX1.4/exa1_4.sce
@@ -0,0 +1,6 @@
+// Example 1.4
+// Current and power calculation with help of i-v curve
+i=5; // i-v curve of Headlight and battery intersects at a point where i=5A
+v=12; //i-v curve of headlight and battery intersects at a point where v=12V
+p=v*i;//Power comsumed by the Headlight
+disp(p,"Power consumed by the Headlight (in Watt)=")