Waldek Hebisch <[email protected]> writes:
> I have now updated MathML format and also did a few changes to
> TeX and Texmacs format. The changes should fix few
> problems. First, long standing problem with missing
> parenthesis.
Here is a testcase. I have no way currently to check anything but the
output of OutputForm, but in any case that's wrong. The OutputForm
itself seems to be correct:
(1) -> r := first guess([reduce(+, [factorial i for i in 1..n]) for n in
1..6]); r::OUTFORM::SEX
(1)
(+
(SIGMA2 (= (*01s 6) 0) (+ n - 1)
(* 2 (PI2 (= (*01p 5) 0) (+ (*01s 6) - 1) (+ (*01p 5) 3))))
1)
Type: SExpression
(2) -> )se ou tex on
(2) -> )se ou texmacs on
(2) -> )se ou mathml on
(2) -> r
s - 1
n - 1 6
--+ ++-++
(2) > 2 | | p + 3 + 1
--+ | | 5
s = 0 p = 0
6 5
<math xmlns="http://www.w3.org/1998/Math/MathML" mathsize="big" display="block">
<mrow><mrow><munderover><mo>∑</mo><mrow><mrow><mrow><msub><mi>s</mi><mrow><mn>6</mn></mrow></msub></mrow></mrow><mo>=</mo><mrow><mn>0</mn></mrow></mrow><mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow></munderover><mrow><mn>2</mn><mo>⁢</mo><mrow><mo>(</mo><munderover><mo>Π</mo><mrow><mrow><mrow><msub><mi>p</mi><mrow><mn>5</mn></mrow></msub></mrow></mrow><mo>=</mo><mrow><mn>0</mn></mrow></mrow><mrow><mrow><msub><mi>s</mi><mrow><mn>6</mn></mrow></msub></mrow><mo>-</mo><mn>1</mn></mrow></munderover><mrow><mo>(</mo><mrow><msub><mi>p</mi><mrow><mn>5</mn></mrow></msub></mrow><mo>+</mo><mn>3</mn><mo>)</mo></mrow><mo>)</mo></mrow></mrow></mrow><mo>+</mo><mn>1</mn></mrow>
</math>
|startTeXmacsOutput|
scheme: (with "mode" "math"
(concat (big-around "<sum>" (concat (rsub (concat (concat (concat (concat
(concat "s" )(rsub (concat "6" )))) "=" "0" ))) (rsup (concat (concat "n" )
(concat "-" "1" ))) (concat "2" "*" "(" (big-around "<prod>" (concat (rsub
(concat (concat (concat (concat (concat "p" )(rsub (concat "5" )))) "=" "0"
))) (rsup (concat (concat (concat (concat "s" )(rsub (concat "6" )))) (concat
"-" "1" ))) (concat "(" (concat (concat (concat "p" )(rsub (concat "5" ))))
"+" "3" ")" ))) ")" ))) "+" "1" )
)
|endOfTeXmacsOutput|
Type: Expression(Integer)
All the best,
Martin
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.