Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafische Wurfparabel

Kommandozeilen-Rechner für die Wurfparabel (schiefer Wurf) in Python: berechnet die Flugbahn und gibt sie mit Gnuplot als Grafik aus. Eines meiner frühen Python-Projekte, entstanden aus Physik- und Programmier-Neugier.

Was es macht

  • Fragt die Wurfparameter ab: Wurfwinkel β, Geschwindigkeit v, Starthöhe z, Zeitspanne und Schrittweite.
  • Berechnet für jeden Zeitschritt die x-/y-Koordinaten der Bahn.
  • Schreibt die Wertepaare nach data.dat und plottet sie mit Gnuplot nach wurf.png.

Nutzung

Linux / macOS

sudo ./install.sh   # installiert Python 3 + Gnuplot
./start.sh          # Werte eingeben  ->  wurf.png

Windows

  1. wurf.py ausführen und Werte eingeben
  2. wurf.plt mit Gnuplot öffnen -> wurf.png wird erzeugt

Formel

Schiefer Wurf: x(t) = v·cos(β)·t und y(t) = v·sin(β)·t + z − ½·g·t² Mehr dazu: Wikipedia · Wurfparabel

Stack

Python 3 · Gnuplot · Bash

🇬🇧 English

A small command-line projectile-motion calculator in Python. It asks for launch angle, velocity, start height, time span and step size, computes the trajectory, writes the points to data.dat and plots them to wurf.png with Gnuplot. Run ./start.sh on Linux/macOS (after sudo ./install.sh), or run wurf.py and open wurf.plt in Gnuplot on Windows.

Frühes Lernprojekt, 2021.

About

📐 CLI projectile-motion (Wurfparabel) calculator in Python, plotted with Gnuplot. An early manroland training task.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages