1045 Bode Plot

题目链接:http://poj.org/problem?id=1045

一道数学物理题, 推理公式:http://www.cnblogs.com/rainydays/archive/2013/01/08/2851741.html

代码:

#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;

int main(){
    double VS,R,C,w;
    cin>>VS>>R>>C;
    int T;
    cin>>T;
    // 设置输出定点小数3位
    cout<<fixed<<setprecision(3);
    while(T--){
        cin>>w;
        cout<<(R*C*w*VS*sqrt(1.0/(R*R*C*C*w*w+1)))<<endl;
    }
    return 0;
}
原文地址:https://www.cnblogs.com/roger9567/p/4886988.html