summaryrefslogtreecommitdiff
path: root/1319/CH13/EX13.11/ii_11.sce
blob: dbe2205d72d3ed1628020f0de3dfa3386b7c424b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Compute Current
clc;
clear;

i=3;
L=10;
t=20*(10^-3);
V=20*(10^3);

E=L*i*i/2;

P=E/t;

I=P/V;

disp('amperes',I,'The Current in the spark plug =')