Emad
2009-10-24 16:24:21 UTC
#include
using namespace std;
int main ()
{
float q=1.60206E-19; // Charge of the electron
float m=9.1083E-31; // mass of the electron
float v; // accelerating voltage in volts
cout<<"Pls enter v value"<
float r1; // radius of the inner tube (cathode)
cout<<"Pls enter r1"<
float r2; // radius of the outer tubr (anode)
cout<<"Pls enter r2"<
float z=log(r2/r1);
float time;
time=sqrt((2*m)/(q*v)))*(r1)*(z)*((1)+(z/3)+(pow(z,2.0)/10)+(pow(z,3.0)/42)+(pow(z,4.0)/216);//there is a problem
cout<<"v="v<
system("pause");
return 0;
}