Skip to content

Commit 7bd84b4

Browse files
committed
Updated gamma
1 parent 1d4fc81 commit 7bd84b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

maths/gamma_recursive.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"""
66

77
# Importing packages
8-
from math import sqrt, pi
8+
from math import pi, sqrt
99
from re import match
1010
from typing import Union
1111

1212

13-
def gamma(num : Union[int, float]) -> Union[int, float]:
13+
def gamma(num: Union[int, float]) -> Union[int, float]:
1414
"""
1515
Calculates the value of Gamma function of num
1616
where num is either an integer (1,2,3..) or a half-integer (0.5,1.5,2.5...).
@@ -80,4 +80,4 @@ def test_gamma() -> None:
8080
results = results.rstrip("0").rstrip(".")
8181
if results == "1":
8282
results = ""
83-
print(results + "\u221A\u03c0")
83+
print(results + "\u221A\u03c0")

0 commit comments

Comments
 (0)