libnumerixpp  0.1.3
A Powerful C++ Library for High-Performance Numerical Computing
physics::kinematics Namespace Reference

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...
 

Detailed Description

Namespace of kinematics (physics)

Todo:
Add more kinematics equations

Function Documentation

◆ calculate_acceleration_of_rectilinear_motion()

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

Parameters
[in]start_speedThe start speed
[in]end_speedThe end speed
[in]timeThe time
Returns
The acceleration of rectilinear motion.

◆ calculate_final_position()

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:

  • s - final position (m)
  • u - start speed (m/s)
  • a - acceleration (m/s^2)
  • t - time (s)
Parameters
[in]initial_positionThe initial position
[in]initial_velocityThe initial velocity
[in]accelerationThe acceleration
[in]timeThe time
Returns
The final position.

◆ calculate_final_velocity()

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:

  • v - final velocity (m/s)
  • u - start speed (m/s)
  • a - acceleration (m/s^2)
  • t - time (s)
Parameters
[in]initial_velocityThe initial velocity
[in]accelerationThe acceleration
[in]timeThe time
Returns
The final velocity.

◆ calculate_path()

auto physics::kinematics::calculate_path ( double  speed,
double  time 
) -> double

Calculates the path.

This function is based on basic formula: S = v * t where:

  • S - path (m)
  • v - speed (m/s)
  • t - time (s)
Parameters
[in]speedThe speed
[in]timeThe time
Returns
The path.

◆ calculate_speed()

auto physics::kinematics::calculate_speed ( double  path,
double  time 
) -> double

Calculates the speed.

This function is based on basic formula: S = v * t where:

  • S - path (m)
  • v - speed (m/s)
  • t - time (s)
Parameters
[in]pathThe path
[in]timeThe time
Returns
The speed.

◆ calculate_speed_of_rectilinear_motion()

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.

Parameters
[in]end_speedThe end speed
[in]accelerationThe acceleration
[in]timeThe time
Returns
The speed of rectilinear motion.

◆ calculate_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:

  • S - path (m)
  • v - speed (m/s)
  • t - time (s)
Parameters
[in]pathThe path
[in]speedThe speed
Returns
The time.