summaryrefslogtreecommitdiff
path: root/1430/CH1/EX1.4/exa1_4.sce
blob: fea2ed7bc93767955bcf7460f5188f946bb619db (plain)
1
2
3
4
5
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)=")