How to find the inverse cosine of a numpy array in Python

1 Answer

0 votes
import numpy as np

arr = np.array([0, 0.5, 1])

print(np.arccos(arr))

 
 
'''
run:
 
[1.57079633 1.04719755 0.        ]

'''

 



answered Dec 30, 2024 by avibootz

Related questions

...