Last active
May 26, 2017 08:54
-
-
Save goulu/a7332063593056348c6de43239f7f119 to your computer and use it in GitHub Desktop.
Finds a better constant than 299792458 to define the meter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fractions import gcd | |
s=9192631770 # number of caesium oscillations in a second | |
bestm=299792458 # fraction of a second in a meter | |
bestgcd=gcd(s,bestm) #14 . we want a larger one | |
for m in range(299792458, 300000000): | |
g=gcd(s,m) | |
if g>bestgcd: | |
bestm,bestgcd=m,g | |
print(bestgcd,bestm,s/bestgcd,m/bestgcd) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for my article about the speed of light and the definition of the meter https://www.drgoulu.com/2017/05/26/pourquoi-on-ne-peut-plus-mesurer-la-vitesse-de-la-lumiere/