Core.
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.
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