Skip to content

Commit ce0bf2a

Browse files
committed
include imaginary axis in right half-plane for Γ(z)
1 parent df1e2f0 commit ce0bf2a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/stdlib_specialfunctions_gamma.fypp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,14 @@ contains
298298

299299
end if
300300

301-
if(z % re > zero_k1) then
301+
if(z % re < zero_k1) then
302302

303-
y = z - one
303+
x = cmplx(abs(z % re), - z % im, kind = ${k1}$)
304+
y = x - one
304305

305306
else
306307

307-
x = cmplx(abs(z % re), - z % im, kind = ${k1}$)
308-
y = x - one
308+
y = z - one
309309

310310
end if
311311

0 commit comments

Comments
 (0)