简单的物理公式计算

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

int main(void)
{
    
double vs,vr,r,c,w;
    
int n,i;
    
while(cin>>vs>>r>>c>>n)
    {
        
for(i=0;i<n;i++)
        {
            cin
>>w;
            vr
=w*c*vs/sqrt(static_cast<double>(w*w+1.0));
            cout
<<fixed<<setprecision(3)<<vr<<endl;
        }
    }
    
return 0;
}

相关文章:

  • 2021-08-10
  • 2021-12-30
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-12-15
  • 2021-12-30
相关资源
相似解决方案