0
Method in python
The method vectorize how it work ?
2 Respuestas
+ 3
Don't write your code into the question tags, look at how messy the tags look. Just tag a relevant language and/or subject -> Python numpy vectorize
- 1
# maximize function
def h(x):
if x < -1 or x > 1:
y = 0
else:
y = (np.cos(20*x) + np.sin(50*x))
return y
hv = np.vectorize(h)