Python‎ > ‎numpy‎ > ‎

cos


 The matrix created through numpy and through lamda function returns with maximum value.
import numpy as np 

n=np.cos([1,2,3,5])
max_value=max(map(lambda a: a, n))
print(max_value)
0.5403023058681398


Comments