Zephyr Scientific Library (zscilib)
|
Go to the documentation of this file.
22 #ifndef ZEPHYR_INCLUDE_ZSL_PHOTONS_H_
23 #define ZEPHYR_INCLUDE_ZSL_PHOTONS_H_
int zsl_phy_photon_frequency(zsl_real_t lambda, zsl_real_t *f)
Calculates the frequency of a photon in hertz given its wavelength.
int zsl_phy_photon_wavelength(zsl_real_t f, zsl_real_t *lambda)
Calculates the wavelength of a photon in meters given its frequency.
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.
API header file for zscilib.
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...
int zsl_phy_photon_ener(zsl_real_t lambda, zsl_real_t *e)
Calculates the energy of a photon in electronvolts.