>>890
#include<stdio.h>
#include<math.h>

int main(void){
const double R=1.0e+3, C=1.0e-6;
double Vo_Vi; // Vo / Vi
double f, omega, r;
int i, j, table[]={1,3,5,7};

for(i=1;i<=5;i++){
r = pow(10.0, i);
for(j=0;j<sizeof(table)/sizeof(*table);j++){
f = table[j] * r; // 周波数
omega = 2 * M_PI * f; // 周波数 → 角速度 変換
Vo_Vi = 1.0 / (1.0 + cos(omega * C * R)); // 注意!cos が -1 の時除算エラー
printf("%f , %.3e\n", f, Vo_Vi);
}
}
return 0;
}