Skip to content

grid_Val_Grow

Fabian Kindermann edited this page Apr 2, 2021 · 11 revisions
function grid_Val_Grow(x, left, right, growth, n)

Description:

Applies the gridpoint formula

for nodes with growing distance on the interval . If is equal to an integer value in the interval , the function returns the values of the respective gridpoints that the subroutine grid_Cons_Grow would create. If lies in between integer values, the function will return a value in between two gridpoints according to the above formula.

Input arguments:

  • real*8 :: x
    The point where to evaluate the gridpoint formula, corresponds to .
  • real*8 :: left
    The left interval endpoint, corresponds to .
  • real*8 :: right
    The right interval endpoint, corresponds to .
  • real*8 :: growth
    The growth rate of gridpoints, corresponds to .
  • integer :: n
    The number of gridpoints to use, corresponds to and defines the interval .

Return Value:

  • real*8 :: grid_Val_Grow
    The value of the gridpoint formula at point x.

References

  • For further reading refer to:
    • Süli, E. & Mayers, D. F. (2003). An Introduction to Numerical Analysis. Cambridge: Cambridge University Press.
    • Powell, M.J.D. (1996). Approximation Theory and Methods. Cambridge: Cambridge University Press.
Clone this wiki locally