summaryrefslogtreecommitdiff
path: root/995/CH2/EX2.18/Ex2_18.sce
blob: 0c7a1c75aaf5cf75afa073329e8b422a7fe6ee2d (plain)
1
2
3
4
5
6
7
8
9
10
11
//Ex:2.18
clc;
clear;
close;
V_1=50;
V_2=10;
dV=V_1-V_2;//in volts
dt=0.1;//in seconds
C=22*10^-6;
i=C*(dV/dt)*1000;//in mA
printf("Current flow = %f milliAmps",i);