Zephyr Scientific Library (zscilib)
photons.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2020 Kevin Townsend (KTOWN)
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
22 #ifndef ZEPHYR_INCLUDE_ZSL_PHOTONS_H_
23 #define ZEPHYR_INCLUDE_ZSL_PHOTONS_H_
24 
25 #include <zsl/zsl.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
41 
54 
65 
76 
90 
91 
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /* ZEPHYR_INCLUDE_ZSL_PHOTONS_H_ */
98  /* End of photons group */
zsl_phy_photon_frequency
int zsl_phy_photon_frequency(zsl_real_t lambda, zsl_real_t *f)
Calculates the frequency of a photon in hertz given its wavelength.
zsl_phy_photon_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.
zsl_phy_photon_mom
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.
zsl.h
API header file for zscilib.
zsl_phy_photon_photoelectric
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...
zsl_real_t
double zsl_real_t
Definition: zsl.h:51
zsl_phy_photon_ener
int zsl_phy_photon_ener(zsl_real_t lambda, zsl_real_t *e)
Calculates the energy of a photon in electronvolts.