Re: MuPAD: TeX output bug?
From: Ralf Hillebrand (tonner_at_mupad.de)
Date: 10/15/04
- Next message: Anthony Green: "Maple Version 8 Required"
- Previous message: Ralf Hillebrand: "Re: MuPAD: overloading operators"
- In reply to: Zdenek Hurak: "MuPAD: TeX output bug?"
- Messages sorted by: [ date ] [ thread ]
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)
*---*
- Next message: Anthony Green: "Maple Version 8 Required"
- Previous message: Ralf Hillebrand: "Re: MuPAD: overloading operators"
- In reply to: Zdenek Hurak: "MuPAD: TeX output bug?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|