Coding the Quadratic Formula in Python

preview_player
Показать описание
In this video, I code the quadratic formula in python. The function made in this video, quadFormula(), takes the 3 coefficients in a quadratic and returns the roots of the quadratic. However, the function only outputs a result if the quadratic has real roots, and in the case that the quadratic will have imaginary roots or a = 0, you will not get any roots.

The programming language I use in this video is called Python, which is a language that can be used in many ways and is typically the first language taught to students taking computer science in schools. Python is also considered to be the best programming language for beginners. The IDE (Integrated Development Envioronment, aka the window I wrote all my code in) is PyCharm. PyCharm is available on Windows, macOS and Linux.
Рекомендации по теме