Skip to content

Commit d5c7103

Browse files
committed
revert irrelevant changes
1 parent f9d463d commit d5c7103

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

mathics/builtin/arithfns/basic.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,6 @@ class Power(BinaryOperator, MPMathFunction):
535535
rules = {
536536
"Power[]": "1",
537537
"Power[x_]": "x",
538-
"Power[I,-1]": "-I",
539-
"Power[-1, 1/2]": "I",
540538
}
541539

542540
summary_text = "exponentiate"

test/builtin/arithmetic/test_basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def test_multiply(str_expr, str_expected, msg):
153153
("a b DirectedInfinity[q]", "a b (q Infinity)", ""),
154154
# Failing tests
155155
# Problem with formatting. Parenthezise are missing...
156-
("a b DirectedInfinity[-I]", "a b (-I Infinity)", ""),
157-
("a b DirectedInfinity[-3]", "a b (-Infinity)", ""),
156+
# ("a b DirectedInfinity[-I]", "a b (-I Infinity)", ""),
157+
# ("a b DirectedInfinity[-3]", "a b (-Infinity)", ""),
158158
],
159159
)
160160
def test_directed_infinity_precedence(str_expr, str_expected, msg):

0 commit comments

Comments
 (0)