libnumerixpp
0.1.3
A Powerful C++ Library for High-Performance Numerical Computing
|
Namespace of kinematics (physics) More...
Functions | |
auto | calculate_path (double speed, double time) -> double |
Calculates the path. More... | |
auto | calculate_speed (double path, double time) -> double |
Calculates the speed. More... | |
auto | calculate_time (double path, double speed) -> double |
Calculates the time. More... | |
auto | calculate_final_velocity (double initial_velocity, double acceleration, double time) -> double |
Calculates the final velocity. More... | |
auto | calculate_final_position (double initial_position, double initial_velocity, double acceleration, double time) -> double |
Calculates the final position. More... | |
auto | calculate_acceleration_of_rectilinear_motion (double start_speed, double end_speed, double time) -> double |
Calculates the acceleration of rectilinear motion. More... | |
auto | calculate_speed_of_rectilinear_motion (double end_speed, double acceleration, double time) -> double |
Calculates the speed of rectilinear motion. More... | |
Namespace of kinematics (physics)
auto physics::kinematics::calculate_acceleration_of_rectilinear_motion | ( | double | start_speed, |
double | end_speed, | ||
double | time | ||
) | -> double |
Calculates the acceleration of rectilinear motion.
Equally variable motion is a motion in which, over any equal periods of time, a material point changes its speed by the same amount. Acceleration is calculated by the formula \(a = \frac{V - V_{0}}{t}\), where v0 and v are the initial and final speed of the body, t is the time of movement
[in] | start_speed | The start speed |
[in] | end_speed | The end speed |
[in] | time | The time |
auto physics::kinematics::calculate_final_position | ( | double | initial_position, |
double | initial_velocity, | ||
double | acceleration, | ||
double | time | ||
) | -> double |
Calculates the final position.
This function is based on the kinematics equation: s = u*t + 0.5 * a * t^2 where:
[in] | initial_position | The initial position |
[in] | initial_velocity | The initial velocity |
[in] | acceleration | The acceleration |
[in] | time | The time |
auto physics::kinematics::calculate_final_velocity | ( | double | initial_velocity, |
double | acceleration, | ||
double | time | ||
) | -> double |
Calculates the final velocity.
This function is based on the basic kinematics equation: v = u + at where:
[in] | initial_velocity | The initial velocity |
[in] | acceleration | The acceleration |
[in] | time | The time |
auto physics::kinematics::calculate_path | ( | double | speed, |
double | time | ||
) | -> double |
Calculates the path.
This function is based on basic formula: S = v * t where:
[in] | speed | The speed |
[in] | time | The time |
auto physics::kinematics::calculate_speed | ( | double | path, |
double | time | ||
) | -> double |
Calculates the speed.
This function is based on basic formula: S = v * t where:
[in] | path | The path |
[in] | time | The time |
auto physics::kinematics::calculate_speed_of_rectilinear_motion | ( | double | end_speed, |
double | acceleration, | ||
double | time | ||
) | -> double |
Calculates the speed of rectilinear motion.
To calculate speed, you can use the formula V0 + a * t, where v is speed, t is time.
[in] | end_speed | The end speed |
[in] | acceleration | The acceleration |
[in] | time | The time |
auto physics::kinematics::calculate_time | ( | double | path, |
double | speed | ||
) | -> double |
Calculates the time.
This function is based on basic formula: S = v * t where:
[in] | path | The path |
[in] | speed | The speed |