Zephyr Scientific Library (zscilib)
|
Go to the documentation of this file.
23 #ifndef ZEPHYR_INCLUDE_ZSL_ELECTRICITY_H_
24 #define ZEPHYR_INCLUDE_ZSL_ELECTRICITY_H_
int zsl_phy_elcty_resistivity(zsl_real_t r, zsl_real_t a, zsl_real_t l, zsl_real_t *rty)
Calculates the resistivity of a uniform piece of material of area section 'a', length 'l' and resista...
int zsl_phy_elcty_res_series(struct zsl_vec *v, zsl_real_t *r)
Calculates the equivalent resistance of a set of resistors in series.
int zsl_phy_elcty_current(zsl_real_t q, zsl_real_t t, zsl_real_t *i)
Calculates the electric current based on the charge (q) that crosses a transversal area during a peri...
int zsl_phy_elcty_power_vi(zsl_real_t v, zsl_real_t i, zsl_real_t *p)
Calculates the electric power based on the voltage (v) and electric current (i).
int zsl_phy_elcty_ohm_law(zsl_real_t i, zsl_real_t r, zsl_real_t *v)
Calculates the voltage between two points in an electrical circiut based on the electric current (i) ...
int zsl_phy_elcty_cap_parallel(struct zsl_vec *v, zsl_real_t *c)
Calculates the equivalent capacitance of a set of capacitors in parallels.
int zsl_phy_elcty_cap_series(struct zsl_vec *v, zsl_real_t *c)
Calculates the equivalent capacitance of a set of capacitors in series.
API header file for vectors in zscilib.
int zsl_phy_elcty_power_vr(zsl_real_t v, zsl_real_t r, zsl_real_t *p)
Calculates the electric power based on the voltage (v) and the resistance (r).
API header file for zscilib.
int zsl_phy_elcty_power_ir(zsl_real_t i, zsl_real_t r, zsl_real_t *p)
Calculates the electric power based on the electric current (i) and the resistance (r).
int zsl_phy_elcty_res_parallel(struct zsl_vec *v, zsl_real_t *r)
Calculates the equivalent resistance of a set of resistors in parallel.