broadcasting

  1. M

    [python] function / broadcasting problem

    Hallo Macuser, ich kämpfe zur Zeit mit einem kleinem Python Problem und hab jetzt mal ein kleines Beispiel zusammengestellt. import numpy as np x_data = [1, 2, 3, 4, 5, 6, 7] def my_func(x): return np.sin(x) + np.sin(2*x) y_data = my_func(x_data) Ich erhalte dann folgende...
Zurück
Oben Unten