From 0ec6cb07f203350372f48c3f25cb9227bb5b1473 Mon Sep 17 00:00:00 2001 From: Rick Gutleber Date: Mon, 5 Aug 2024 15:53:26 -0400 Subject: [PATCH] black hole radius to mass conversion was giving the reciprocal of the right answer --- rpn/science/rpnPhysics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpn/science/rpnPhysics.py b/rpn/science/rpnPhysics.py index dfe4480..28bebf3 100644 --- a/rpn/science/rpnPhysics.py +++ b/rpn/science/rpnPhysics.py @@ -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' ]