logspace Subroutine

public subroutine logspace(start, finish, num, val, base)

Generates numbers spaced evenly on a log scale. In linear space, the sequence starts at base ** start (base to the power of start) and ends with base ** stop

Arguments

Type IntentOptional Attributes Name
real(kind=rp), intent(in) :: start

Starting point, base ** start is the starting value

real(kind=rp), intent(in) :: finish

Ending point, finish /= start, base ** start is the ending value

integer, intent(in) :: num

Number of values to generate, num >= 2

real(kind=rp), intent(out), dimension(:) :: val

(num,) array; Generated values

real(kind=rp), intent(in), optional :: base

Base of the logspace, default 10