ZOJ 1070 计算电路电压
2010-05-11 10:11
190 查看
//一道物理题,VR=VS*R*C*w/sqrt(R^2*C^2*w^2+1)
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
double VS,R,C;
int n,s;
cin>>VS>>R>>C>>n;
double *w=new double[n+1];
s=n;
while(s--)
{
cin>>w[n-s];
cout<<setiosflags(ios::fixed)<<setprecision(3)
<<VS*R*C*w[n-s]/sqrt(R*R*C*C*w[n-s]*w[n-s]+1)<<endl;
}
return 0;
}
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
double VS,R,C;
int n,s;
cin>>VS>>R>>C>>n;
double *w=new double[n+1];
s=n;
while(s--)
{
cin>>w[n-s];
cout<<setiosflags(ios::fixed)<<setprecision(3)
<<VS*R*C*w[n-s]/sqrt(R*R*C*C*w[n-s]*w[n-s]+1)<<endl;
}
return 0;
}
相关文章推荐
- POJ 2080 && ZOJ 1256 日期计算实例
- ZOJ 3728 Collision (计算几何)
- zoj 2744 Palindromes(计算回文子串个数的优化策略)
- zoj 3728 Collision 计算几何
- ZOJ 3871 Convex Hull(计算几何、凸包)
- zoj 3806 Incircle and Circumcircle(计算几何:高大上的二分解方程)
- 电路分析计算必备数学知识----导数与微积分计算(未完)
- 电路分析计算必备数学知识----三角函数
- ZOJ 3720 Magnet Darts (计算几何,概率,判点是否在多边形内)
- PIC单片机的外接电压检测复位电路举例
- NB风扇控制电路 电压输出处续流二极管
- 电路设计_锂电池电压与容量关系
- 电路与Multisim基础 FM、AM信号源(电压)及其特征
- 【ACM打卡】ZOJ 1070 2001
- HDU1046 POJ1450 UVALive2334 ZOJ1037 Gridland【数学计算+水题】
- STM32 AD采样电压计算公式
- 数字电路设计之牛顿迭代法计算除法的verilog实现
- zoj 3728 Collision 计算几何
- MAX6414低功耗、单/双电压、微处理器复位电路
- ZOJ 3175 Number of Containers 【数学图像性质(一个常见算式的经典计算)】