diff --git a/mathics/builtin/arithmetic.py b/mathics/builtin/arithmetic.py
index 51980d633..3ed71b068 100644
--- a/mathics/builtin/arithmetic.py
+++ b/mathics/builtin/arithmetic.py
@@ -829,7 +829,9 @@ def evaluate(self, evaluation: Evaluation):
class Im(SympyFunction):
"""
- :WMA link:https://reference.wolfram.com/language/ref/Im.html
+
+ :WMA link:
+ https://reference.wolfram.com/language/ref/Im.html
- 'Im[$z$]'
@@ -1215,7 +1217,12 @@ class Real_(Builtin):
class RealAbs(Builtin):
"""
- :WMA link:https://reference.wolfram.com/language/ref/RealAbs.html
+
+ :Abs (Real):
+ https://en.wikipedia.org/wiki/Absolute_value (
+ :WMA link:
+ https://reference.wolfram.com/language/ref/RealAbs.html
+ )
- 'RealAbs[$x$]'
@@ -1283,8 +1290,12 @@ def test(self, expr) -> bool:
class RealSign(Builtin):
"""
- :WMA link:https://reference.wolfram.com/language/ref/RealAbs.html
-
+
+ :Signum:
+ https://en.wikipedia.org/wiki/Sign_function (
+ :WMA link:
+ https://reference.wolfram.com/language/ref/RealSign.html
+ )
- 'RealSign[$x$]'
- returns $-1$, $0$ or $1$ depending on whether $x$ is negative,
@@ -1319,7 +1330,12 @@ def eval(self, x: Number, evaluation: Evaluation) -> Optional[Integer]:
class Sign(SympyFunction):
"""
- :WMA link:https://reference.wolfram.com/language/ref/Sign.html
+
+ :Sign:
+ https://en.wikipedia.org/wiki/Sign_function (
+ :WMA link:
+ https://reference.wolfram.com/language/ref/Sign.html
+ )
- 'Sign[$x$]'
diff --git a/mathics/builtin/testing_expressions/equality_inequality.py b/mathics/builtin/testing_expressions/equality_inequality.py
index d5e0ce6e5..59152e31e 100644
--- a/mathics/builtin/testing_expressions/equality_inequality.py
+++ b/mathics/builtin/testing_expressions/equality_inequality.py
@@ -69,7 +69,6 @@ def numerify_args(items, evaluation) -> list:
n_items = []
for item in items:
if not isinstance(item, Number):
- # TODO: use $MaxExtraPrecision insterad of hard-coded 50
item = eval_N(item, evaluation, SymbolMaxExtraPrecision)
n_items.append(item)
items = n_items
diff --git a/mathics/eval/testing_expressions.py b/mathics/eval/testing_expressions.py
index b0783ceb9..4046d0c8c 100644
--- a/mathics/eval/testing_expressions.py
+++ b/mathics/eval/testing_expressions.py
@@ -6,13 +6,6 @@
from mathics.core.expression import Expression
from mathics.core.systemsymbols import SymbolDirectedInfinity
-# TODO: Remove me. The following function is not used anywhere
-"""
-def cmp(a, b) -> int:
- "Returns 0 if a == b, -1 if a < b and 1 if a > b"
- return (a > b) - (a < b)
-"""
-
def do_cmp(x1, x2) -> Optional[int]: