Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by lugburz ( 17 years ago )
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
long double f,k_v,sag=10,f_konech,f_nach,i=0,r_ab=22.4,w,r_ekv=52.4;
double l=137.7/pow(10,6),c=500/pow(10,12);
//double l=137.7,c=500;
cout<<"Vvedite f_nach=";
cin>>f_nach;
cout<<"\n\nVvedite f_konech=";
cin>>f_konech;
for(f=f_nach;f<=f_konech;f+=10)
{
//i++;
//f=f_nach;
w=6.28*f;
k_v=sqrt( (r_ab*r_ab) + (w*w*l*l) ) / sqrt( (r_ekv*r_ekv) + (w*l - 1/(w*c) )*(w*l - 1/(w*c) ) );
cout<<"\nk_v["<<w<<"]="<<k_v;
}
//system("PAUSE");
return 0;
}
Revise this Paste