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 - Python Tutorial
From the course: Programming Foundations: Numerical Mathematics and Calculations
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Mathematical operators and order of operations4m 4s
-
(Locked)
Common mathematical functions4m 15s
-
(Locked)
Using built-in math functions4m 39s
-
(Locked)
Writing a program to calculate factors of an integer3m 42s
-
(Locked)
Challenge: Converting units of measurement1m 30s
-
(Locked)
Solution: Converting units of measurement2m 49s
-
-
-
-
-
-
-