30 std::array<double, 2> _bullet_velocity;
44 inline X032(
double m1,
double m2,
double l)
59 inline void exec(
double v0,
double phi0) {
60 _bullet_velocity = { v0, phi0 };
63 const double tmp = pow((mbullet * v0 * cos(phi0)) / _mass, 2);
64 const double cosThetaMax = 1 - 1 / (2 * g *
length) * tmp;
79 return _bullet_velocity;
88 X032 xobj{ 20.0_g, 4.0, 1.5 };
91 for (
double v0 = 200; v0 < 700; v0 += 100) {
96 for (
double p0 = -60.0_deg; p0 <= 10.0_deg; p0 += 10.0_deg) {
static double to_degrees(double x)
X032(double m1, double m2, double l)
X630 Konstruktor.
The XModel class Basisklasse speichert eine ID in Form einer Zeichenkette enthält Hilfsfunktionen zur...
The X630 class Das ballistische Pendel.
const auto & bullet_velocity() const
bullet_velocity Kugelgeschwindigkeit
void exec(double v0, double phi0)
exec berechne alle fehlenden Werte
Idx
The Idx enum Zugriff auf die Ergebnisse mittels Index.
static void save(const T &data, Format fmt)
save Speicherung von Daten in eine Datei
void run()
run Berechnung von Beispieldaten (ballistisches Pendel)
The CResult class Speicherung von Rechenergebnissen.
static const Format latex
static constexpr double g
void set_result(Idx idx, double val)
operator () einem Element wird ein Wert zugewiesen
static void all(const std::string &s, std::initializer_list< bool > lst)
input teste mehrere Bedingungen auf einmal