constants.nbt 471 B

12345678910111213141516171819202122232425262728
  1. use core::scalar
  2. use math::functions
  3. ### Mathematical constants
  4. let pi = 3.14159265358979323846264338327950288
  5. let π = pi
  6. let τ = 2 π
  7. let e = 2.71828182845904523536028747135266250
  8. let φ = (1 + sqrt(5)) / 2
  9. let golden_ratio = φ
  10. ### Named numbers
  11. let hundred = 100
  12. let thousand = 1_000
  13. let million = 1_000_000
  14. let billion = 10^9
  15. let trillion = 10^12
  16. let quadrillion = 10^15
  17. let quintillion = 10^18
  18. let googol = 10^100
  19. ### Misc
  20. let ½ = 1/2
  21. let ¼ = 1/4