Raymond Hettinger: Numerical Marvels Inside Python - Keynote | PyData Tel Aviv 2022

Discover the importance of accuracy in numerical computations and explore techniques used in Python's math and statistics modules.

Key takeaways
  • The importance of accuracy in numerical computations is highlighted, with the speaker noting that it’s easy to lose precision with floating point numbers.
  • The talk focuses on the math and statistics modules in Python, and the techniques used to improve accuracy in numerical computations.
  • The speaker discusses the concept of a “group” in mathematics, which has properties that make it useful for numerical computations.
  • The hypot function is used as an example of a function that can be computed accurately using numerical techniques.
  • The speaker notes that the math module has a gamma function that can be used to compute factorials, and that this function is used to improve accuracy in numerical computations.
  • The talk also discusses the concept of logarithms and how they can be used to reduce the size of large numbers, making it easier to compute accurate results.
  • The speaker notes that the statistics module has functions for computing combinations and permutations, and that these functions can be used to improve accuracy in numerical computations.
  • The talk concludes by highlighting the importance of accuracy in numerical computations, and the techniques used in the math and statistics modules to achieve accurate results.