32. sqrt(-1) vs emath.sqrt(-1)

Easy

Is np.sqrt(-1) == np.emath.sqrt(-1)? Return the boolean result.

  • np.sqrt(-1) is NaN
  • np.emath.sqrt(-1) is 1j

Output

False

Sign in to write and run your own code.

Implement solve(...)