From 962c06ce0c205c2ebea1d1df4aa8b7912a1ac25d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 11 Aug 2016 17:27:04 +0200 Subject: [PATCH] Add comments --- Math/Functions/Functions.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Math/Functions/Functions.php b/Math/Functions/Functions.php index edc4c11ea..c68dc3883 100644 --- a/Math/Functions/Functions.php +++ b/Math/Functions/Functions.php @@ -14,7 +14,7 @@ * @link http://orange-management.com */ -namespace phpOMS\Math; +namespace phpOMS\Math\Functions; /** * Well known functions class. @@ -138,7 +138,16 @@ class Functions return self::ackermann($m - 1, self::ackermann($m, $n - 1)); } - + /** + * Applying abs to every array value + * + * @param array $values Numeric values + * + * @return array + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ public static function abs(array $values) : array { $abs = []; @@ -161,7 +170,7 @@ class Functions * @since 1.0.0 * @author Dennis Eichhorn */ - public static function invMod($a, $n) + public static function invMod(int $a, int $n) { if ($n < 0) { $n = -$n;