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

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

#include <zsl/zsl.h>

Go to the source code of this file.

Functions

int zsl_phy_photon_ener (zsl_real_t lambda, zsl_real_t *e)
 Calculates the energy of a photon in electronvolts. More...
 
int zsl_phy_photon_mom (zsl_real_t lambda, zsl_real_t *p)
 Calculates the linear momentum of a photon in electronvolts and seconds per meter. More...
 
int zsl_phy_photon_wavelength (zsl_real_t f, zsl_real_t *lambda)
 Calculates the wavelength of a photon in meters given its frequency. More...
 
int zsl_phy_photon_frequency (zsl_real_t lambda, zsl_real_t *f)
 Calculates the frequency of a photon in hertz given its wavelength. More...
 
int zsl_phy_photon_photoelectric (zsl_real_t f, zsl_real_t w, zsl_real_t *kmax)
 Calculates the maximum kinetic energy in electronvolts of the electrons released in the photoelectric effect, when a light beam of frequency 'f' hits a material of work function 'w'. More...
 

Detailed Description

API header file for photons in zscilib.

This file contains the zscilib photons APIs

Definition in file photons.h.