Problem with texput and transpose



-----maxima-bounces at math.utexas.edu wrote: -----

>texput (nounify (transpose), lambda ([e], tex1 (first (e) ^ ' T)));

> There's an opportunity for trouble above since the "^" is going to
> be simplified before tex1 is called, which can simplify away the
> exponent for some values of the base (e.g. 0, 1).

Another problem with the texput approach:

 (%i61) texput (nounify (transpose), lambda ([e], tex1 (first (e) ^ 'T)));
 (%o61) lambda([e],tex1(first(e)^'T))

Bogus double superscript in TeX:

 (%i63) tex(transpose((x)^^4));
  $$x^{T}^{\langle 4\rangle}$$
(%o63) false

--bw