#include <stdio.h>
#include <math.h>
#define M_PI 3.141592653589
int main(void) {
double E = 5.0,R = 30.0,C = 0.7e-6,t, I;
for (t = 0.0; t <= 0.002; t += 0.0001) {
I
= (E
/ R
) * (1 - exp(-t
/ (R
* C
))); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CiAKI2RlZmluZSBNX1BJIDMuMTQxNTkyNjUzNTg5CiAKaW50IG1haW4odm9pZCkgewogICAgZG91YmxlIEUgPSA1LjAsUiA9IDMwLjAsQyA9IDAuN2UtNix0LCBJOwogCiAgICBwcmludGYoInQgKHMpXHRcdEkgKEEpXG4iKTsKIAogICAgZm9yICh0ID0gMC4wOyB0IDw9IDAuMDAyOyB0ICs9IDAuMDAwMSkgewogICAgICAgIEkgPSAoRSAvIFIpICogKDEgLSBleHAoLXQgLyAoUiAqIEMpKSk7IAogICAgICAgIHByaW50ZigiJS41Zlx0JS41ZlxuIiwgdCwgSSk7IAogICAgfQogCiAgICByZXR1cm4gMDsKfQ==