Zephyr Scientific Library (zscilib)
Functions
momentum.h File Reference

API header file for momentum in zscilib. More...

#include <zsl/zsl.h>

Go to the source code of this file.

Functions

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) and velocity (v). More...
 
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. More...
 
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 final (vf) velocities. More...
 
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 final velocity of the other object and the masses and initial velocities of both objects. More...
 
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 objects occur, given the masses and initial velocities of both the initial objects. More...
 

Detailed Description

API header file for momentum in zscilib.

This file contains the zscilib momentum APIs

Definition in file momentum.h.