Simplify Complex Numbers With Python

Most general-purpose programming languages have either no support or limited support for complex numbers. Your typical options are learning some specialized tool like MATLAB or finding a third-party library. Python is a rare exception because it comes with complex numbers built in.

Despite the name, complex numbers aren’t complicated! They’re convenient in tackling practical problems that you’ll get a taste of in this tutorial. You’ll explore vector graphics and sound frequency analysis, but complex numbers can also help in drawing fractals, for example.

In this tutorial, you’ll learn how to:

  • Define complex numbers with literals in Python
  • Represent complex numbers in rectangular and polar coordinates
  • Use complex numbers in arithmetic expressions
  • Take advantage of the built-in cmath module
  •  

     

     

    To finish reading, please visit source site