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
|
mond = 1.6
|
||||||
jupiter = 24
|
jupiter = 24
|
||||||
gravitation = erde
|
gravitation = erde
|
||||||
starthoehe = 0
|
startwinkel = startwinkel * deg2rad
|
||||||
startwinkel = 26 * deg2rad
|
|
||||||
startgeschwindigkeit = 36
|
|
||||||
loeschen = "y"
|
|
||||||
|
|
||||||
# Calculate time of flight
|
# Calculate time of flight
|
||||||
flugdauer = startgeschwindigkeit * sin(startwinkel) / gravitation
|
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):
|
# berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigkeit, starthoehe):
|
||||||
|
|
||||||
|
|
||||||
cow = "🦝"
|
cow = "🦝"
|
||||||
cowlength = len(cow)
|
cowlength = len(cow)
|
||||||
xmax = 157
|
xmax = 157
|
||||||
|
@ -66,7 +64,7 @@ pi = 3.1416
|
||||||
deg2rad = pi / 180
|
deg2rad = pi / 180
|
||||||
xsteps = xmax
|
xsteps = xmax
|
||||||
wurfweite = 0
|
wurfweite = 0
|
||||||
startwinkel = (34 / deg2rad,)
|
startwinkel = 34
|
||||||
startgeschwindigkeit = 23
|
startgeschwindigkeit = 23
|
||||||
starthoehe = 0
|
starthoehe = 0
|
||||||
print(berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigkeit, starthoehe))
|
print(berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigkeit, starthoehe))
|
||||||
|
|
Loading…
Reference in a new issue