You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return(longArray[index-1],currIn)switch// whether we use juxtaposition and omit \cdot
58
+
{
59
+
// NOTE: upright text are to be interpreted as a whole while italic text are to be interpreted as individual characters.
60
+
// Therefore, constants formatted as upright text, and multi-character variables are not considered for juxtaposition.
51
61
52
-
// Don't juxtapose upright variables with numbers like displaying "var2" for "var*2" since "var2" may be interpreted as one variable.
53
-
// Also, don't produce upright "ei" (one variable with two chars) for e*i, or "ei^2" for e*i^2.
54
-
// but "e (2+i)" and "e (2+i)^2" are fine with the parentheses - so we have the priority check.
55
-
(Variable{IsLatexUprightFormatted:true}
56
-
or Complex{ImaginaryPart.IsZero:false,Priority:Priority.Leaf}/* don't combine upright "i" with an upright variable*/,
57
-
Variable{IsLatexUprightFormatted:true} or Number{Priority:Priority.Leaf} or Powf(Number{Priority:Priority.Leaf} or Variable{IsLatexUprightFormatted:true}, _))=>false,
58
-
// 2 * 3 instead of 2 3 (= 23), 2 * 3^4 instead of 2 3^4 (= 23^4), 2 * (3/4) instead of 2 (3/4) which is a mixed number (= 2 + 3/4)
59
-
// but "(2+i) 2", "2 (2+i)" and "2 (2+i)^2" are fine with the parentheses - so we have the priority check.
60
-
(Number{Priority:Priority.Leaf},Number{Priority:>=Priority.Div} or Powf(Number{Priority:Priority.Leaf}, _) or Divf)=>false,
// 2 * 3 instead of 2 3 (= 23), 2 * 3^4 instead of 2 3^4 (= 23^4), but "(2+i) 2", "2 (2+i)" and "2 (2+i)^2" are fine with the parentheses - so we have the priority check.
74
+
(_,Number{Priority:>=Priority.Mul} or Factorialf(Number{Priority:Priority.Leaf})
75
+
or Powf(Number{Priority:Priority.Leaf} or Factorialf(Number{Priority:Priority.Leaf}), _))=>false,// Keep the \cdot in "f(x) \cdot -2" "f(x) \cdot 2i" "f(x) \cdot -2i"
0 commit comments