Skip to content

Commit 91ee454

Browse files
committed
More correct Mathics code for CuebRoot
My WL skills are not that good.
1 parent d348304 commit 91ee454

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mathics/autoload/forms/StandardForm.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
(* Change RadBox to RadicalBox. We use RadBox to make it clear that
1111
the below code was a read-in from a file and not some pre-existing
1212
code. *)
13-
RadicalBox[expr_, form_] = RadBox[MakeBoxes[expr, form], 3];
13+
Attributes[CommonRadicalBox] = HoldAll;
14+
Attributes[RadBox] = HoldAll;
15+
CommonRadicalBox[expr_, form_] = RadBox[MakeBoxes[expr, form], 3];
1416

1517
(******************************************************************************************)
1618
(* StandardForm Boxing Rules *)
1719
(******************************************************************************************)
1820

19-
MakeBoxes[CubeRoot[expr_], StandardForm] := RadicalBox[expr_, form_];
21+
MakeBoxes[CubeRoot[expr_], StandardForm] := CommonRadicalBox[expr, StandardForm];
2022
(*All the other StandardForm boxing routines... *)
23+
2124
End[]

0 commit comments

Comments
 (0)