How can I calculate exponents about negative values in python?

前端 未结 0 1795
慢半拍i
慢半拍i 2021-02-04 03:35

a = np.array([-40, -20, -30])

I want to calculate exponents about a.

My code is a**0.5

but I got the result.

array([nan, nan, nan])

I want to

相关标签:
回答
  • 消灭零回复
提交回复
热议问题