Fricas uses very old and not recommended \over when it generates latex.
This causes modern compilers such as lualatex to hang when using dmath
environment.
Could the latex be corrected to use \frac{} instead?
I do not remember if I asked about this here before.
Here is an example
----------------------------------
>fricas
FriCAS Computer Algebra System
Version: FriCAS 1.3.7
Timestamp: Thu May 19 16:50:51 CDT 2022
(1) -> setSimplifyDenomsFlag(true)
(2) -> ii:=integrate(asin(x)*log(x),x);
(3) -> latex(ii)
"{{\log \left( {{{\sqrt {{-{{x} \sp {2}}+1}}}+1}} \right)} -{\log \left(
{{{\
sqrt {{-{{x} \sp {2}}+1}}} -1}} \right)}+{{\left( {2 \ {\log \left( {x}
\rig
ht)}} -4 \right)} \ {\sqrt {{-{{x} \sp {2}}+1}}}}+{2 \ x \ {\arcsin
\left(
{x} \right)} \ {\log \left( {x} \right)}} -{2 \ x \ {\arcsin \left(
{x} \
right)}}} \over 2"
Type:
String
-----------------------------
Now compile the above latex, hangs
---- foo.tex-----
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{breqn}
\begin{document}
\begin{dmath*}
{{\log \left( {{{\sqrt {{-{{x} \sp {2}}+1}}}+1}} \right)} -{\log \left(
{{{\sqrt {{-{{x} \sp {2}}+1}}} -1}} \right)}+{{\left( {2 \ {\log \left(
{x} \right)}} -4 \right)} \ {\sqrt {{-{{x} \sp {2}}+1}}}}+{2 \ x \
{\arcsin \left( {x} \right)} \ {\log \left( {x} \right)}} -{2 \ x \
{\arcsin \left( {x} \right)}}} \over 2
\end{dmath*}
\end{document}
--------------------------------
Now do
lualatex foo.tex
and it hags. see
https://tex.stackexchange.com/questions/412450/why-this-latex-code-hangs-lualatex-foreign-command-over
for reference.
dmath is used to automatically try to break long output into separate lines
which is very useful. The hangs goes away when using \[...\] but not when
using dmath environment.
Could this be fixed by next version of Fricas?
Thanks
--Nasser
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/79569e48-8acc-4ed4-8736-cb782cc7a943n%40googlegroups.com.