Units, please

Whenever I see scientific code without units I scream inside my heart.Everytime you write simulations of physical phenomena (often using numpy or matlab), make sure to always have variables where the units are clear, e.g. : lambda_m = 633e-9 #wavelentgh in meters c_mps = 3e8 #speed of light in meters per seconds freq_Hz = c_mps/lambda_mFailure … Continue reading Units, please