Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
FUNCTION PolyR(X0,X,F,N)INTEGER,INTENT(IN)::N! order of the polynomialREAL,INTENT(IN)::x0,x(N),f(N)! x, y values of the polynomialREAL::ft(N),h(N),PolyR! Initialize arraysh=x-x0ft=f! Recursion for solutionIF(N>=2)THEN DO i=1,N-1DO j=1,N-ift(j)=(h(j+i)*ft(i)-h(i)*ft(i+1))/&&(h(j+i)-h(j))END DO END DO ENDIFPolyR=ft(1)END FUNCTION PolyR