物理电路背景,推导公式,暴露出数学功底差,看了题解才推出来。

代码
//Type:数学(物理背景)
//思路:对t取不同的值,得到两个方程,化简求得。
//【薄弱】
#include <stdio.h>
#include
<math.h>

int main()
{
double Vs, R, C, W, Vr;
int n;
while (scanf("%lf%lf%lf%d", &Vs, &R, &C, &n) != EOF) {
while (n--) {
scanf(
"%lf", &W);
Vr
= R*C*W*Vs/sqrt(1+(C*R*W)*(C*R*W));
printf(
"%.3lf\n", Vr);
}
}
return 0;
}

 

相关文章:

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