ueberlichtgeschwindigkeitssache
git-svn-id: http://svn.lsim.tuxzone.org/trunk@22 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -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;
|
||||
@@ -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))));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user