logrange Interface

public interface logrange

Module Procedures

private pure function logrange_ib(a, b, n, base, inclast) result(res)

Returns an array of n log-spaced values from a to b. By default, the base is 10 if omitted but can be changed by the user

Arguments

Type IntentOptional Attributes Name
integer(kind=dp), intent(in) :: a
integer(kind=dp), intent(in) :: b
integer, intent(in) :: n
integer, intent(in), optional :: base

Logarithm base

logical, intent(in), optional :: inclast

Whether to include the last value b

Return Value real(kind=dp), (n)

private pure function logrange_rb(a, b, n, base, inclast) result(res)

Returns an array of n log-spaced values from a to b. By default, the base is 10 if omitted but can be changed by the user

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: a
real(kind=dp), intent(in) :: b
integer, intent(in) :: n
real(kind=dp), intent(in), optional :: base

Logarithm base

logical, intent(in), optional :: inclast

Whether to include the last value b

Return Value real(kind=dp), (n)