Quantcast
Channel: matt392 [INSTRUCTABLES]
Viewing all articles
Browse latest Browse all 167

Python - Magnitude-Distance Formula for Stars/Galaxies

$
0
0
print ("This program will calculate magnitude-distance for stars and galaxies.") # We need the math module for base 10 log function import math # Magnitude-Distance Formula is: (m - M) = ( (-5) + (5 * (log (d) ) ) # m is apparent magnitude, M is absolute magnitude, d is distance in parsec # T...
By: matt392

Continue Reading »

Viewing all articles
Browse latest Browse all 167

Trending Articles