Pentium 667 faster than Athlon 1.53GHz (2100+)
Posted: May 6th, 2004, 2:12 am
when executing this code:
A pentium at 667mhz finishes before an athlon xp 2100+ (1.53ghz)
Code: Select all
#include <iostream>
int main ()
{
double C=299792458;
double X=0;
double Y=0;
double V=0;
/*
V=(V1+V2)/(1+((V1*V2)/(C^2)))
*/
while (X<C)
{
cout<<"V1="<<X<<"\n";
cout<<"V="<<(X+X)/(1+((X*X)/(C*C)))<<"\n";
X += 0.00001*C;
}
return 0;
}