Die Suche ergab 4 Treffer

von polar641
Donnerstag 25. April 2019, 13:02
Forum: Wissenschaftliches Rechnen
Thema: Flugbahn Plotten mit Matplotlib
Antworten: 8
Zugriffe: 1424

Re: Flugbahn Plotten mit Matplotlib

Stimmt ja ich hatte vor dem abschicken noch etwas geändert.
Das hier ist der aktuelle Code :
import matplotlib.pyplot as plt
import numpy as np
import time
import math

v = 300
q = 9
a = math.pow(v, 2) / q
w = q / (2 * v)
t = np.array([1,2,3])
w1 = math.sin(w * t)
w2 = math.sin((2 * w * t))

data ...
von polar641
Donnerstag 25. April 2019, 12:47
Forum: Wissenschaftliches Rechnen
Thema: Flugbahn Plotten mit Matplotlib
Antworten: 8
Zugriffe: 1424

Re: Flugbahn Plotten mit Matplotlib

Code: Alles auswählen

Traceback (most recent call last):
  File "C:/Users/Adrian/PycharmProjects/SDF/Folie1.py", line 11, in <module>
    w1 = math.sin(w * t)
TypeError: unsupported operand type(s) for *: 'float' and 'set'

Process finished with exit code 1
von polar641
Donnerstag 25. April 2019, 12:36
Forum: Wissenschaftliches Rechnen
Thema: Flugbahn Plotten mit Matplotlib
Antworten: 8
Zugriffe: 1424

Re: Flugbahn Plotten mit Matplotlib

import matplotlib.pyplot as plt
import numpy as np
import time

v = 300
q = 9
a = np.power(v, 2) / q
w = q / (2 * v)
t = {0., 1., 5.}
w1 = np.sin(w * time)
w2 = np.sin((2 * w * time))

data = np.array([w1],[w2])
r = a * data
plt.plot(data)
plt.show()


Hm also meine numpy Aufrufe geben mir ...
von polar641
Donnerstag 25. April 2019, 11:30
Forum: Wissenschaftliches Rechnen
Thema: Flugbahn Plotten mit Matplotlib
Antworten: 8
Zugriffe: 1424

Flugbahn Plotten mit Matplotlib

Guten Tag,

auf meiner Suche nach einer guten Erklärung zum plotten einer Flugbahn bin ich auf dieses Forum hier gestoßen =)
Ich höre zur Zeit ein Modul namens Sensordatenfusion. Eine unserer Übungen besteht jetzt daraus in Python eine Flugbahn mit vorgegebenen Geschwindigkeits und ...