Zephyr Scientific Library (zscilib)
|
Go to the documentation of this file.
22 #ifndef ZEPHYR_INCLUDE_ZSL_MOMENTUM_H_
23 #define ZEPHYR_INCLUDE_ZSL_MOMENTUM_H_
int zsl_phy_mom_change(zsl_real_t m, zsl_real_t vi, zsl_real_t vf, zsl_real_t *p)
Calculates the gain or loss in momentum of an object based on its mass (m) and its initial (vi) and f...
int zsl_phy_mom_inelas(zsl_real_t m1, zsl_real_t vi1, zsl_real_t m2, zsl_real_t vi2, zsl_real_t *vf)
Calculates the final velocity of the merged object after a perfect inelastic collision between two ob...
int zsl_phy_mom_elas(zsl_real_t m1, zsl_real_t vi1, zsl_real_t vf1, zsl_real_t m2, zsl_real_t vi2, zsl_real_t *vf2)
Calculates the final velocity of an object after an elastic collision with another object given the f...
API header file for zscilib.
int zsl_phy_mom_imp(zsl_real_t f, zsl_real_t time, zsl_real_t *imp)
Calculates the impulse given by a constant force acting during a certain period of time.
int zsl_phy_mom_mom(zsl_real_t m, zsl_real_t v, zsl_real_t *p)
Calculates the linear momentum in kilograms and meters per second of an object based on its mass (m) ...