Core.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=dp), | public, | parameter | :: | PI | = | 4.0_dp*datan(1.0_dp) |
PI |
real(kind=dp), | public, | parameter | :: | T_K | = | 273.15_dp |
0°C in Kelvin. |
real(kind=c_double), | public, | bind(C, name="0") | :: | capi_PI | = | PI | |
real(kind=c_double), | public, | bind(C, name="0") | :: | capi_T_K | = | T_K |
Assert if two numbers are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | x1 |
First number to be compared. |
||
real(kind=dp), | intent(in) | :: | x2 |
Second number to be compared. |
||
integer(kind=int32), | intent(in) | :: | n |
Number of digits. |
Comparison result.
Converts degrees to rad.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | theta |
Angle in degrees. |
Angle in rad.
Compute the thermal voltage.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | T |
Temperature in °C. |
Thermal voltage in V.
Convert wavelength to energy
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | lambda |
Wavelength in nm. |
Energy in eV.
Converts degrees to rad.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | phase |
Angle in rad. |
Angle in degrees.
Round x to n digits.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | x |
Number to be rounded. |
||
integer(kind=int32), | intent(in) | :: | n |
Number of digits.s |
Rounded number