There is a very concise algorithm for computing incomplete gamma function:
https://people.sc.fsu.edu/~jburkardt/f_src/asa147/asa147.html
However, when I look extensively over the Internet or trying to find any references I do not find a rationale for this algorithm. For example why we use log gamma function into it? Would be grateful for any comments which explain the algorithm construction and the mathematical basis for it.