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

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

#include <zsl/zsl.h>
#include <zsl/vectors.h>

Go to the source code of this file.

Functions

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 period of time (t). More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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 resistance 'r'. More...
 
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) and resistance (r) using Ohm's law. More...
 
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). More...
 
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). More...
 
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). More...
 

Detailed Description

API header file for electricity in zscilib.

This file contains the zscilib electricity APIs

Definition in file electricity.h.