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

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

#include <zsl/zsl.h>

Go to the source code of this file.

Functions

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. More...
 
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 distance between them. More...
 
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 field. More...
 
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. More...
 
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 the distance between them. More...
 
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. More...
 
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) and the angle they form. More...
 

Detailed Description

API header file for electrics in zscilib.

This file contains the zscilib electric APIs

Definition in file electric.h.