isin Module Function

public pure elemental module function isin(x, xl, xr, lclosed, rclosed) result(res)

Test whether x is in the interval spanned by x1,x2 l/rclosed if true include xl and xr, respectively. They are true by default

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: x
real(kind=dp), intent(in) :: xl
real(kind=dp), intent(in) :: xr
logical, intent(in), optional :: lclosed
logical, intent(in), optional :: rclosed

Return Value logical