

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to find Square root of complex numbers in Python?
You can find the Square root of complex numbers in Python using the cmath library. The cmath library in python is a library for dealing with complex numbers. You can use it as follows to find the square root −
Example
from cmath import sqrt
a = 0.2 + 0.5j print(sqrt(a))
Output
This will give the output
(0.6076662244659689+0.4114100635092987j)
- Related Questions & Answers
- Compute the square root of complex inputs with scimath in Python
- 8086 program to find the square root of a perfect square root number
- How to calculate square root of a number in Python?
- Babylonian method to find the square root
- 8085 program to find square root of a number
- 8086 program to find Square Root of a number
- Return the element-wise square-root of a complex type array in Numpy
- Guess Nearest Square Root in Python
- How to find the root mean square of a vector in R?
- Square and Square root in Arduino
- How to Plot Complex Numbers in Python?
- Complex Numbers in Python?
- Java program to find the square root of a given number
- How to get the square root of 2 in JavaScript?
- How to perform square root without using math module in Python?
Advertisements