From: Zdenek Hurak (hurak_at_control.felk.cz)
Date: 10/15/04

Date: Fri, 15 Oct 2004 10:01:05 +0200



Hi,

We have trouble with generating TeX output via generate::TeX in
MuPAD. Command generate::TeX works correctly for a matrix of a
domain Dom::Matrix

>> A:=matrix([[s+1, s],[6, s^2-9]])

+-               -+
|  s + 1,    s    |
|                 |
|          2      |
|    6,   s  - 9  |
+-               -+
>> print(Unquoted, generate::TeX(A))

\left(\begin{array}{cc}
s + 1 & s\\
6 & s^2 - 9\\
\end{array}\right)

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?

By the way, this feature is very useful with TeXmacs.

Best regards,

Zdenek Hurak and Petr Augusta
Czech Technical University, Prague