Zephyr Scientific Library (zscilib)
|
Go to the documentation of this file.
22 #ifndef ZEPHYR_INCLUDE_ZSL_ENERGY_H_
23 #define ZEPHYR_INCLUDE_ZSL_ENERGY_H_
int zsl_phy_ener_photon(zsl_real_t f, zsl_real_t *e)
Calculates the energy in electron volts of a photon based on it's frequency in hertz.
int zsl_phy_ener_elas_pot(zsl_real_t k, zsl_real_t dist, zsl_real_t *ue)
Calculates the elastic potential energy of a spring based on the distance it has been compressed/expa...
int zsl_phy_ener_kin(zsl_real_t v, zsl_real_t m, zsl_real_t *ke)
Calculates the kinetic energy of a moving object based on its mass (m) and velocity (v).
int zsl_phy_ener_grav_pot(zsl_real_t m, zsl_real_t h, zsl_real_t *ug)
Calculates the gravitational potential energy in joules of an object based on its mass (m) and its he...
int zsl_phy_ener_photon2(zsl_real_t lambda, zsl_real_t *e)
Calculates the energy in electron volts of a photon based on it's wavelength in ??...
int zsl_phy_ener_mec(zsl_real_t ke, zsl_real_t rke, zsl_real_t ug, zsl_real_t ue, zsl_real_t *me)
Calculates the total mechanical energy of a system by adding kinetic energy (linear and angular) and ...
int zsl_phy_ener_fric(zsl_real_t fric, zsl_real_t dist, zsl_real_t *e)
Calculates the energy lost due to a friction force based on the distance the object experiencing the ...
int zsl_phy_ener_power(zsl_real_t ener, zsl_real_t time, zsl_real_t *power)
Calculates the power by dividing energy or work by time.
API header file for zscilib.
int zsl_phy_ener_final(zsl_real_t ei1, zsl_real_t ei2, zsl_real_t ei3, zsl_real_t ei4, zsl_real_t ef1, zsl_real_t ef2, zsl_real_t ef3, zsl_real_t *ef4)
Given the initial values of the two kinetic (linear and rotational) and the two potential (gravitatio...
int zsl_phy_ener_rot(zsl_real_t omega, zsl_real_t i, zsl_real_t *rke)
Calculates the angular kinetic energy of a rotating object based on its angular velocity (omega) and ...