I am creating a calculator application for all types of mathematical algorithms. However, I want to determine if the root is complex, and then has an exception for it. I came up with this:
if x == complex():
print("Error 05: Complex Root")
However, when the application starts, nothing is identified and printed, knowing what xis the complex root.
source
share