From the course: Programming Foundations: Numerical Mathematics and Calculations

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Using built-in math functions

Using built-in math functions

- [Instructor] Every application includes at least a few basic mathematical functions. For example, quadratic function is used when we're trying to solve any number of problems involving measurements or quantities with unknown variables. The square root function is used in many different scenarios for example, to find a distance between two distinct points in 2D and 3D systems or in case when we want to find the roots of quadratic equations to calculate different probability and statistical measures. Exponential function and trigonometric function are used when working with geometric information such as graphs. The gamma function is used in combinatorics. The cool thing is that we have a module called Math that conveniently provides us with all the mathematical functions that we need. If we jump in and open our Jupyter Notebook named 01_03, we just need to type import math. The first function we are going to try and see in…

Contents