Skip to content

Commit 9595b07

Browse files
committed
another little step
1 parent 2b51c37 commit 9595b07

File tree

5 files changed

+500
-225
lines changed

5 files changed

+500
-225
lines changed

mathics/builtin/arithfns/basic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,9 @@ class Power(BinaryOperator, _MPMathFunction):
577577
'Infix[{HoldForm[x], HoldForm[y]}, "^", 590, Right]'
578578
),
579579
("", "x_ ^ y_"): (
580-
"PrecedenceForm[Superscript[PrecedenceForm[HoldForm[x], 590],"
580+
# "PrecedenceForm[Superscript[PrecedenceForm[HoldForm[x], 590],"
581+
# " HoldForm[y]], 590]"
582+
"PrecedenceForm[Superscript[HoldForm[x],"
581583
" HoldForm[y]], 590]"
582584
),
583585
("", "x_ ^ y_?Negative"): (

mathics/builtin/atomic/symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def lhs(expr):
556556
return Expression(SymbolFormat, expr, Symbol(format))
557557

558558
def rhs(expr):
559-
if expr.has_formf(SymbolInfix, None):
559+
if expr.has_form(SymbolInfix, None):
560560
expr = Expression(
561561
Expression(SymbolHoldForm, expr.head), *expr.elements
562562
)

0 commit comments

Comments
 (0)