Parabelfunktion ohne Ausgabe
This commit is contained in:
parent
97762be1fd
commit
c3f122c46d
1 changed files with 3 additions and 5 deletions
8
parabelfunc.py
Normal file → Executable file
8
parabelfunc.py
Normal file → Executable file
|
@ -16,10 +16,7 @@ def berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigk
|
|||
mond = 1.6
|
||||
jupiter = 24
|
||||
gravitation = erde
|
||||
starthoehe = 0
|
||||
startwinkel = 26 * deg2rad
|
||||
startgeschwindigkeit = 36
|
||||
loeschen = "y"
|
||||
startwinkel = startwinkel * deg2rad
|
||||
|
||||
# Calculate time of flight
|
||||
flugdauer = startgeschwindigkeit * sin(startwinkel) / gravitation
|
||||
|
@ -54,6 +51,7 @@ def berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigk
|
|||
|
||||
# berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigkeit, starthoehe):
|
||||
|
||||
|
||||
cow = "🦝"
|
||||
cowlength = len(cow)
|
||||
xmax = 157
|
||||
|
@ -66,7 +64,7 @@ pi = 3.1416
|
|||
deg2rad = pi / 180
|
||||
xsteps = xmax
|
||||
wurfweite = 0
|
||||
startwinkel = (34 / deg2rad,)
|
||||
startwinkel = 34
|
||||
startgeschwindigkeit = 23
|
||||
starthoehe = 0
|
||||
print(berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigkeit, starthoehe))
|
||||
|
|
Loading…
Reference in a new issue