Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c0ce8dc

Browse files
committed
remove unreachable code
1 parent 069501e commit c0ce8dc

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

‎src/stdlib_specialfunctions_gamma.fypp‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -671,29 +671,6 @@ contains
671671

672672
end do
673673

674-
else !Algorithm 2 in the reference
675-
676-
a = - x
677-
c = one / a
678-
d = p - one
679-
b = c * (a - d)
680-
n = 1
681-
682-
do
683-
684-
c = d * (d - one) / (a * a)
685-
d = d - 2
686-
y = c * (a - d)
687-
b = b + y
688-
n = n + 1
689-
690-
if(n > int((p - 2) / 2) .or. y < b * tol_${k2}$) exit
691-
692-
end do
693-
694-
if(y >= b * tol_${k2}$ .and. mod(int(p), 2) /= 0) b = b + d * c / a
695-
696-
g = ((-1) ** p * exp(-a + log_gamma(p) - (p - 1) * log(a)) + b) / a
697674
end if
698675

699676
res = g

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /