Pentium 667 faster than Athlon 1.53GHz (2100+)

Code help, language discussions, and software development advice.
Post Reply
User avatar
ccb056
Site Administrator
Posts: 981
Joined: January 14th, 2004, 11:36 pm
Location: Texas
Contact:

Pentium 667 faster than Athlon 1.53GHz (2100+)

Post by ccb056 »

when executing this code:

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;
}
A pentium at 667mhz finishes before an athlon xp 2100+ (1.53ghz)
Smartweb
Registered User
Posts: 622
Joined: January 15th, 2004, 2:11 am
Contact:

Post by Smartweb »

That's really weird.
User avatar
ccb056
Site Administrator
Posts: 981
Joined: January 14th, 2004, 11:36 pm
Location: Texas
Contact:

Post by ccb056 »

I think it may be the compiler
Post Reply