How can I take the square root of -1 using python

0 votes

When I take the square root of -1 it gives me an error:

invalid value encountered in sqrt

How to fix that?

from numpy import sqrt
arr = sqrt(-1)
print(arr)
Feb 17, 2023 in Python by Arya
• 990 points

edited 5 days ago 7 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP