ecx__core Module

Core.


Uses

  • module~~ecx__core~~UsesGraph module~ecx__core ecx__core module~ecx__common ecx__common module~ecx__core->module~ecx__common ieee_arithmetic ieee_arithmetic module~ecx__common->ieee_arithmetic iso_c_binding iso_c_binding module~ecx__common->iso_c_binding stdlib_codata stdlib_codata module~ecx__common->stdlib_codata stdlib_constants stdlib_constants module~ecx__common->stdlib_constants stdlib_kinds stdlib_kinds module~ecx__common->stdlib_kinds stdlib_math stdlib_math module~ecx__common->stdlib_math stdlib_optval stdlib_optval module~ecx__common->stdlib_optval

Used by

  • module~~ecx__core~~UsedByGraph module~ecx__core ecx__core module~ecx__api ecx__api module~ecx__api->module~ecx__core module~ecx__eis ecx__eis module~ecx__api->module~ecx__eis module~ecx__capi ecx__capi module~ecx__capi->module~ecx__core module~ecx__capi->module~ecx__api module~ecx__eis->module~ecx__core module~ecx__pec ecx__pec module~ecx__pec->module~ecx__core module~ecx ecx module~ecx->module~ecx__api module~ecx->module~ecx__capi program~ecxcli ecxcli program~ecxcli->module~ecx

Functions

public function assertEqual(x1, x2, n) result(r)

Assert if two numbers are equal.

Arguments

Type IntentOptional 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.

Return Value logical

Comparison result.

public pure elemental function deg2rad(theta) result(phase)

Converts degrees to rad.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: theta

Angle in degrees.

Return Value real(kind=dp)

Angle in rad.

public pure elemental function nm2eV(lambda) result(E)

Convert wavelength to energy

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: lambda

Wavelength in nm.

Return Value real(kind=dp)

Energy in eV.

public pure elemental function rad2deg(phase) result(theta)

Converts degrees to rad.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: phase

Angle in rad.

Return Value real(kind=dp)

Angle in degrees.

public pure elemental function roundn(x, n) result(r)

Round x to n digits.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: x

Number to be rounded.

integer(kind=int32), intent(in) :: n

Number of digits.s

Return Value real(kind=dp)

Rounded number