# Question:why latex fails on matrix after doing evalf with simplify?

## Question:why latex fails on matrix after doing evalf with simplify?

Maple 2023

This is strange problem. I have matrix M. when doing latex(M), it works. But when doing latex(simplify(evalf[16](M))) it gives internal Maple error

Error, (in unknown) invalid input: ^ expects 2 arguments, but received 1

any workaround or ideas why it happens?

Maple 2023.2 on windows 10.

 > restart;

 > interface(version)

 > Physics:-Version();

 > expr:=Matrix(3, 3, [[(-a^2-b^2-c^2)^(1/2),b*c/a,-b*c/a],[0,-(a^2+b^2)/(-a^2-b^2-c^2)^(1/2),c*a/b-c^2/(-a^2-b^2-c^2)^(1/2)],[0,0,0]]); latex(expr);

\left[\begin{array}{ccc}
\sqrt{-a^{2}-b^{2}-c^{2}} & \frac{b c}{a} & -\frac{b c}{a}
\\
0 & -\frac{a^{2}+b^{2}}{\sqrt{-a^{2}-b^{2}-c^{2}}} & \frac{c a}{b}-\frac{c^{2}}{\sqrt{-a^{2}-b^{2}-c^{2}}}
\\
0 & 0 & 0
\end{array}\right]

 > expr:=simplify(evalf[16](expr)); latex(expr);

Error, (in unknown) invalid input: ^ expects 2 arguments, but received 1

 >

(will send to Maplesoft)