Re: MuPAD: TeX output bug?

From: Ralf Hillebrand (tonner_at_mupad.de)
Date: 10/15/04


Date: Fri, 15 Oct 2004 13:11:05 +0200

Zdenek Hurak wrote:
> but for a matrix of a type
> Dom::Matrix(Dom::DistributedPolynomial([s])) not correct, see
> entry B[1, 2]
>
>
>>>B:=Dom::Matrix(Dom::DistributedPolynomial([s]))([[s+1, s],[6,
>
> s^2-9]])
>
> +- -+
> | s + 1, s |
> | |
> | 2 |
> | 6, s - 9 |
> +- -+
>
>>>print(Unquoted, generate::TeX(B))
>
>
> \left(\begin{array}{cc}
> {s} + {1} & {s} + {s}\\
> {6} & {s}^{2} - {9}\\
> \end{array}\right)
>
> Is there anything wrong or does command generate::TeX work only
> with objects of Dom::Matrix(), DOM_EXPR ? Neither Dom::Matrix()
> nor Dom::Matrix(Dom::DistributedPolynomial([s])) is an
> arithmetical expression. Why does MuPAD return wrong result and
> does not return error if this domain is not supported?

It is supported, but the the TeX method of Dom::DistributedPolynomial
had a bug. Iff the polynomial consisted of exactly one term with
degree > 0, it was printed twice as s above. I have fixed the bug
in the development version of MuPAD, but the fix come too late for
version 3.1.

If you are interested, I can send you a patch via email.

-- 
     *---*         MuPAD -- The Open Computer Algebra System
    *---*|
    |*--|*             Ralf Hillebrand (tonner@mupad.de)
    *---*


Relevant Pages

  • Re: mupad
    ... The fate of MuPAD is not quite obvious now. ... To the best of my knowledge, SciFace GmbH has at least 1 ... MuPAD please do not pay much attention by their public bug ...
    (sci.math.symbolic)
  • Re: New to MuPad
    ... How many MuPad programmers are there?, or were there in 2005 ?. ... there is no syntax error and MuPAD behaves exactly as ... The documentation is hard to read, e.g. due to the red colour and spaces. ... >of acknowledging a bug, in my opinion. ...
    (sci.math.symbolic)
  • MuPAD bugs: solve -> Error: Domain attribute "_concat" missing;
    ... during evaluation of 'removeIdentsFromSolution' ... This bug has been introduced in MuPAD 3.0. ... It is absent in MuPAD 2.5.2. ...
    (sci.math.symbolic)
  • Re: MuPad: solve problem
    ... > expressions which contain roots: ... This bug is fixed in MuPAD 3.1/3.0 but both of them returns now ...
    (sci.math.symbolic)
  • Re: How to cite MuPAD properly?
    ... Zdenek Hurak wrote: ... Which part of MuPAD do you mean? ... Do you want to give credit to a ... result obtained by MuPAD or refer to the MuPAD documentation/tutorial or ...
    (sci.math.symbolic)