Commit 3526540e authored by Oliver Bock's avatar Oliver Bock

Cleansed source (tabs->spaces, indentation, trailing whitespaces)

parent 88dcf497
...@@ -586,8 +586,7 @@ void PulsarAnimationWidget::setPulsarMagneticAxisInclination(const int degrees) ...@@ -586,8 +586,7 @@ void PulsarAnimationWidget::setPulsarMagneticAxisInclination(const int degrees)
void PulsarAnimationWidget::updateOrbitPeriod() void PulsarAnimationWidget::updateOrbitPeriod()
{ {
m_orbitalPeriod = 3.1553e7 * sqrt( m_orbitalPeriod = 3.1553e7 * sqrt(
(pow(m_pulsarSemiMajorAxis, 3.0) * pow(m_pulsarMass+m_companionMass, 2.0)) / (pow(m_pulsarSemiMajorAxis, 3.0) * pow(m_pulsarMass+m_companionMass, 2.0)) / pow(m_companionMass, 3.0)
pow(m_companionMass, 3.0)
); );
// visual correction factor (increase orbital momentum) // visual correction factor (increase orbital momentum)
...@@ -599,8 +598,7 @@ void PulsarAnimationWidget::updateOrbitPeriod() ...@@ -599,8 +598,7 @@ void PulsarAnimationWidget::updateOrbitPeriod()
void PulsarAnimationWidget::updateOrbitRadii() void PulsarAnimationWidget::updateOrbitRadii()
{ {
m_pulsarSemiMajorAxis = 1.0015e-5 * pow( m_pulsarSemiMajorAxis = 1.0015e-5 * pow(
(pow(m_orbitalPeriod, 2.0) * pow(m_companionMass, 3.0)) / (pow(m_orbitalPeriod, 2.0) * pow(m_companionMass, 3.0)) / pow(m_pulsarMass+m_companionMass, 2.0),
pow(m_pulsarMass+m_companionMass, 2.0),
1.0/3.0 1.0/3.0
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment