blob: 6e0995037eb75286030375c2da0ba16060d24590 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
c=4*10^(-6);
v1=16;
v2=24;
t=2*10^(-3);
disp("Part a");
rate=(v2-v1)/t;
disp("the average rate of change of voltage (in V/s) is"); disp(rate);
disp("Part b");
i=c*rate;
disp("the average current (in mA) into the capacitor is"); disp(i*10^3);
disp("Part c");
q=c*(v2-v1);
disp("the increase in charge (in μC) on the capacitor is"); disp(q*10^6);
|