From 7bd84b4eee7aa118edff8aba79bf7130b099bd8b Mon Sep 17 00:00:00 2001 From: Username Date: Mon, 6 Sep 2021 13:55:20 -0400 Subject: [PATCH] Updated gamma --- maths/gamma_recursive.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maths/gamma_recursive.py b/maths/gamma_recursive.py index 11c14c2cb..e7e2c70c7 100644 --- a/maths/gamma_recursive.py +++ b/maths/gamma_recursive.py @@ -5,12 +5,12 @@ for more info: https://en.wikipedia.org/wiki/Gamma_function """ # Importing packages -from math import sqrt, pi +from math import pi, sqrt from re import match from typing import Union -def gamma(num : Union[int, float]) -> Union[int, float]: +def gamma(num: Union[int, float]) -> Union[int, float]: """ Calculates the value of Gamma function of num where num is either an integer (1,2,3..) or a half-integer (0.5,1.5,2.5...). @@ -80,4 +80,4 @@ if __name__ == "__main__": results = results.rstrip("0").rstrip(".") if results == "1": results = "" - print(results + "\u221A\u03c0") \ No newline at end of file + print(results + "\u221A\u03c0")