Skip to content

Commit

Permalink
black hole radius to mass conversion was giving the reciprocal of the…
Browse files Browse the repository at this point in the history
… right answer
  • Loading branch information
ConceptJunkie committed Aug 5, 2024
1 parent 2c3acb5 commit 0ec6cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpn/science/rpnPhysics.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def calculateBlackHoleMass( measurement ):
if 'length' in arguments:
radius = arguments[ 'length' ]

return divide( getProduct( [ getPower( getConstant( 'speed_of_light' ), 2 ), radius ] ),
getProduct( [ 2, getConstant( 'newton_constant' ) ] ) ).convert( 'kilogram' )
return divide( getProduct( [ 2, getConstant( 'newton_constant' ) ] ),
getProduct( [ getPower( getConstant( 'speed_of_light' ), 2 ), radius ] ) ).convert( 'kilogram' )

if 'acceleration' in arguments:
gravity = arguments[ 'acceleration' ]
Expand Down

0 comments on commit 0ec6cb0

Please sign in to comment.