Zephyr Scientific Library (zscilib)
|
Go to the documentation of this file.
22 #ifndef ZEPHYR_INCLUDE_ZSL_ELECTRIC_H_
23 #define ZEPHYR_INCLUDE_ZSL_ELECTRIC_H_
int zsl_phy_elec_force(zsl_real_t q1, zsl_real_t q2, zsl_real_t r, zsl_real_t *f)
Calculates the electric force in newtons between two charged bodies based on their charges and the di...
int zsl_phy_elec_force2(zsl_real_t q, zsl_real_t e, zsl_real_t *f)
Calculates the electric force in newtons that a charged body experiences when it enters an electric f...
int zsl_phy_elec_flux(zsl_real_t e, zsl_real_t a, zsl_real_t theta, zsl_real_t *fl)
Calculates the electric flux that flows across a surface based on the area (a), the electric field (b...
int zsl_phy_elec_charge_dens(zsl_real_t q, zsl_real_t v, zsl_real_t *d)
Calculates the uniform charge density of an charged body based on its charge and its volume.
int zsl_phy_elec_field(zsl_real_t q, zsl_real_t r, zsl_real_t *e)
Calculates the electric field created by a charged body anywhere in space.
API header file for zscilib.
int zsl_phy_elec_potential(zsl_real_t q, zsl_real_t r, zsl_real_t *v)
Calculates the Coulomb's potential of a charged body anywhere in space.
int zsl_phy_elec_pot_ener(zsl_real_t q1, zsl_real_t q2, zsl_real_t r, zsl_real_t *u)
Calculates the electric potential energy in joules of two charged bodies based on their charges and t...