ueberlichtgeschwindigkeitssache

git-svn-id: http://svn.lsim.tuxzone.org/trunk@22 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
catdog2
2008-11-22 17:02:01 +00:00
parent aa9a70cd8b
commit 806ee13444
2 changed files with 2 additions and 1 deletions

View File

@@ -24,4 +24,4 @@
*/
const double PI = acos( -1.0 );
const double SPEED_OF_LIGHT = 2.99792458e+8;
const double SPEED_OF_LIGHT = 299792458.0;

View File

@@ -148,6 +148,7 @@ void GraphicsEllipseItem::calculateProbePath(QPointF startPoint) {
double GraphicsEllipseItem::getMasse(double speed) {
if(speed < SPEED_OF_LIGHT/10.0) return masse;
if(speed >= SPEED_OF_LIGHT) speed = SPEED_OF_LIGHT - 1e-8; //fuer v>=c nehme v (etwas)<c an
else {
return masse / (sqrt(1- ( (speed/SPEED_OF_LIGHT)*(speed/SPEED_OF_LIGHT))));