universe.html
001|
002| from sys import argv
003| from os import path
004| from math import pi
005|
006|
007|
008|
009| def main ():
010| c_ms = 299_792_458
011| y_s = int(365.25 * 24 * 60 * 60)
012| LY_m = int(c_ms * y_s)
013|
014| PL = 1.616255e-35
015| PA = 2.6121e-70
016|
017| VU = int(9.3e10)
018|
019| print(f'c = {c_ms:,} m/s (velocity)')
020| print(f'year = {y_s:,} seconds (time)')
021| print()
022|
023| print(f'One Light Year: {LY_m:,} m (length!)')
024| print()
025|
026| print(f'Planck Leng: {PL} m (length)')
027| print(f'Planck Area: {PA} m² (area)')
028| print()
029|
030| vu_meters = float(VU * LY_m)
031| vu_planck = float(vu_meters / PL)
032|
033| print('Universe diameter:')
034| print(f'> {VU:,} LY')
035| print(f'> {vu_meters:.3e} m')
036| print(f'> {vu_planck:.3e} PL')
037| print()
038|
039| vu_area = pi * pow(VU/2, 2)
040| va_meters = float(vu_area * pow(LY_m,2))
041| va_planck = float(va_meters / PA)
042| print('Universe shell area:')
043| print(f'> {VU//2:,} LY (radius)')
044| print(f'> {vu_area:.3e} LY²')
045| print(f'> {va_meters:.3e} m²')
046| print(f'> {va_planck:.3e} PA²')
047| print()
048|
049|
050| if __name__ == '__main__':
051| print(argv[0])
052| print()
053| main()
054| print()
055|
056| '''eof'''
057|