> But like I said before, I breqn hangs on "integrate(sqrt(x^2+1)/(x^4+1), x)".

Yes, the problem is that breqn does not work well with TeX.
Attached is the version that my tex.spad produces. That compiles fine
with breqn (no hang), but also no break. :-(

The last two entries are numerator and denominator of the expression
(split by hand).

Use
https://github.com/hemmecke/fricas/blob/mathjax/src/doc/fricasmath.sty
for the compilation and remove \usepackage{tensor} if you don't have
tensor.sty installed. It's not needed for this example.

Ralf

-- 
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 fricas-devel+unsubscr...@googlegroups.com.
To post to this group, send email to fricas-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.
\documentclass{article}
\usepackage{fricasmath}
\begin{document}
\begin{fricasmath}{1}
\frac{-{4\TIMES \nthroot{2}{4}\TIMES \arctan{\PAREN{\frac{\PAREN{\sqrt{2}-{1}%
}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}-{\nthroot{2%
}{4}}}{\PAREN{\sqrt{2}-{1}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2\TIMES %
\sqrt{2}-{3}}}\TIMES \sqrt{\frac{\PAREN{\PAREN{-{41\TIMES \SYMBOL{x}\TIMES %
\sqrt{2}}+58\TIMES \SYMBOL{x}}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac{2%
\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}-{48\TIMES \SUPER{\SYMBOL{x}}{3}%
\TIMES \sqrt{2}}+68\TIMES \SUPER{\SYMBOL{x}}{3}}\TIMES \sqrt{\SUPER{\SYMBOL{x%
}}{2}+1}+\PAREN{\PAREN{41\TIMES \SUPER{\SYMBOL{x}}{2}+17}\TIMES \sqrt{2}-{58%
\TIMES \SUPER{\SYMBOL{x}}{2}}-{24}}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac{2%
\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{24\TIMES \sqrt{2}-{34}}%
\TIMES \SUPER{\nthroot{2}{4}}{2}+\PAREN{48\TIMES \SUPER{\SYMBOL{x}}{4}+24%
\TIMES \SUPER{\SYMBOL{x}}{2}+24}\TIMES \sqrt{2}-{68\TIMES \SUPER{\SYMBOL{x}}{%
4}}-{34\TIMES \SUPER{\SYMBOL{x}}{2}}-{34}}{24\TIMES \sqrt{2}-{34}}}+\PAREN{-{%
\SYMBOL{x}\TIMES \sqrt{2}}+\SYMBOL{x}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}%
}{2\TIMES \sqrt{2}-{3}}}\TIMES \sqrt{\SUPER{\SYMBOL{x}}{2}+1}+\PAREN{\SUPER{%
\SYMBOL{x}}{2}\TIMES \sqrt{2}-{\SUPER{\SYMBOL{x}}{2}}}\TIMES \sqrt{\frac{2%
\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{\sqrt{2}-{1}}\TIMES %
\nthroot{2}{4}}}}}+4\TIMES \nthroot{2}{4}\TIMES \arctan{\PAREN{\frac{\PAREN{%
\sqrt{2}-{1}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+%
\nthroot{2}{4}}{\PAREN{\sqrt{2}-{1}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{%
2\TIMES \sqrt{2}-{3}}}\TIMES \sqrt{\frac{\PAREN{\PAREN{41\TIMES \SYMBOL{x}%
\TIMES \sqrt{2}-{58\TIMES \SYMBOL{x}}}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac%
{2\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}-{48\TIMES \SUPER{\SYMBOL{x}}{3}%
\TIMES \sqrt{2}}+68\TIMES \SUPER{\SYMBOL{x}}{3}}\TIMES \sqrt{\SUPER{\SYMBOL{x%
}}{2}+1}+\PAREN{\PAREN{-{41\TIMES \SUPER{\SYMBOL{x}}{2}}-{17}}\TIMES \sqrt{2}%
+58\TIMES \SUPER{\SYMBOL{x}}{2}+24}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac{2%
\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{24\TIMES \sqrt{2}-{34}}%
\TIMES \SUPER{\nthroot{2}{4}}{2}+\PAREN{48\TIMES \SUPER{\SYMBOL{x}}{4}+24%
\TIMES \SUPER{\SYMBOL{x}}{2}+24}\TIMES \sqrt{2}-{68\TIMES \SUPER{\SYMBOL{x}}{%
4}}-{34\TIMES \SUPER{\SYMBOL{x}}{2}}-{34}}{24\TIMES \sqrt{2}-{34}}}+\PAREN{-{%
\SYMBOL{x}\TIMES \sqrt{2}}+\SYMBOL{x}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}%
}{2\TIMES \sqrt{2}-{3}}}\TIMES \sqrt{\SUPER{\SYMBOL{x}}{2}+1}+\PAREN{\SUPER{%
\SYMBOL{x}}{2}\TIMES \sqrt{2}-{\SUPER{\SYMBOL{x}}{2}}}\TIMES \sqrt{\frac{2%
\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{-{\sqrt{2}}+1}\TIMES %
\nthroot{2}{4}}}}+\PAREN{\sqrt{2}-{1}}\TIMES \nthroot{2}{4}\TIMES \log{%
\PAREN{\frac{\PAREN{\PAREN{41\TIMES \SYMBOL{x}\TIMES \sqrt{2}-{58\TIMES %
\SYMBOL{x}}}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2%
\TIMES \sqrt{2}-{3}}}-{48\TIMES \SUPER{\SYMBOL{x}}{3}\TIMES \sqrt{2}}+68%
\TIMES \SUPER{\SYMBOL{x}}{3}}\TIMES \sqrt{\SUPER{\SYMBOL{x}}{2}+1}+\PAREN{%
\PAREN{-{41\TIMES \SUPER{\SYMBOL{x}}{2}}-{17}}\TIMES \sqrt{2}+58\TIMES \SUPER%
{\SYMBOL{x}}{2}+24}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{%
4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{24\TIMES \sqrt{2}-{34}}\TIMES \SUPER{%
\nthroot{2}{4}}{2}+\PAREN{48\TIMES \SUPER{\SYMBOL{x}}{4}+24\TIMES \SUPER{%
\SYMBOL{x}}{2}+24}\TIMES \sqrt{2}-{68\TIMES \SUPER{\SYMBOL{x}}{4}}-{34\TIMES %
\SUPER{\SYMBOL{x}}{2}}-{34}}{24\TIMES \sqrt{2}-{34}}}}+\PAREN{-{\sqrt{2}}+1}%
\TIMES \nthroot{2}{4}\TIMES \log{\PAREN{\frac{\PAREN{\PAREN{-{41\TIMES %
\SYMBOL{x}\TIMES \sqrt{2}}+58\TIMES \SYMBOL{x}}\TIMES \nthroot{2}{4}\TIMES %
\sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}-{48\TIMES \SUPER{%
\SYMBOL{x}}{3}\TIMES \sqrt{2}}+68\TIMES \SUPER{\SYMBOL{x}}{3}}\TIMES \sqrt{%
\SUPER{\SYMBOL{x}}{2}+1}+\PAREN{\PAREN{41\TIMES \SUPER{\SYMBOL{x}}{2}+17}%
\TIMES \sqrt{2}-{58\TIMES \SUPER{\SYMBOL{x}}{2}}-{24}}\TIMES \nthroot{2}{4}%
\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{24%
\TIMES \sqrt{2}-{34}}\TIMES \SUPER{\nthroot{2}{4}}{2}+\PAREN{48\TIMES \SUPER{%
\SYMBOL{x}}{4}+24\TIMES \SUPER{\SYMBOL{x}}{2}+24}\TIMES \sqrt{2}-{68\TIMES %
\SUPER{\SYMBOL{x}}{4}}-{34\TIMES \SUPER{\SYMBOL{x}}{2}}-{34}}{24\TIMES \sqrt{%
2}-{34}}}}}{\PAREN{4\TIMES \sqrt{2}-{4}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{%
4}}{2\TIMES \sqrt{2}-{3}}}}%
\end{fricasmath}

\begin{fricasmath}{2}
-{4\TIMES \nthroot{2}{4}\TIMES \arctan{\PAREN{\frac{\PAREN{\sqrt{2}-{1}%
}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}-{\nthroot{2%
}{4}}}{\PAREN{\sqrt{2}-{1}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2\TIMES %
\sqrt{2}-{3}}}\TIMES \sqrt{\frac{\PAREN{\PAREN{-{41\TIMES \SYMBOL{x}\TIMES %
\sqrt{2}}+58\TIMES \SYMBOL{x}}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac{2%
\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}-{48\TIMES \SUPER{\SYMBOL{x}}{3}%
\TIMES \sqrt{2}}+68\TIMES \SUPER{\SYMBOL{x}}{3}}\TIMES \sqrt{\SUPER{\SYMBOL{x%
}}{2}+1}+\PAREN{\PAREN{41\TIMES \SUPER{\SYMBOL{x}}{2}+17}\TIMES \sqrt{2}-{58%
\TIMES \SUPER{\SYMBOL{x}}{2}}-{24}}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac{2%
\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{24\TIMES \sqrt{2}-{34}}%
\TIMES \SUPER{\nthroot{2}{4}}{2}+\PAREN{48\TIMES \SUPER{\SYMBOL{x}}{4}+24%
\TIMES \SUPER{\SYMBOL{x}}{2}+24}\TIMES \sqrt{2}-{68\TIMES \SUPER{\SYMBOL{x}}{%
4}}-{34\TIMES \SUPER{\SYMBOL{x}}{2}}-{34}}{24\TIMES \sqrt{2}-{34}}}+\PAREN{-{%
\SYMBOL{x}\TIMES \sqrt{2}}+\SYMBOL{x}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}%
}{2\TIMES \sqrt{2}-{3}}}\TIMES \sqrt{\SUPER{\SYMBOL{x}}{2}+1}+\PAREN{\SUPER{%
\SYMBOL{x}}{2}\TIMES \sqrt{2}-{\SUPER{\SYMBOL{x}}{2}}}\TIMES \sqrt{\frac{2%
\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{\sqrt{2}-{1}}\TIMES %
\nthroot{2}{4}}}}}+4\TIMES \nthroot{2}{4}\TIMES \arctan{\PAREN{\frac{\PAREN{%
\sqrt{2}-{1}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+%
\nthroot{2}{4}}{\PAREN{\sqrt{2}-{1}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{%
2\TIMES \sqrt{2}-{3}}}\TIMES \sqrt{\frac{\PAREN{\PAREN{41\TIMES \SYMBOL{x}%
\TIMES \sqrt{2}-{58\TIMES \SYMBOL{x}}}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac%
{2\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}-{48\TIMES \SUPER{\SYMBOL{x}}{3}%
\TIMES \sqrt{2}}+68\TIMES \SUPER{\SYMBOL{x}}{3}}\TIMES \sqrt{\SUPER{\SYMBOL{x%
}}{2}+1}+\PAREN{\PAREN{-{41\TIMES \SUPER{\SYMBOL{x}}{2}}-{17}}\TIMES \sqrt{2}%
+58\TIMES \SUPER{\SYMBOL{x}}{2}+24}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac{2%
\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{24\TIMES \sqrt{2}-{34}}%
\TIMES \SUPER{\nthroot{2}{4}}{2}+\PAREN{48\TIMES \SUPER{\SYMBOL{x}}{4}+24%
\TIMES \SUPER{\SYMBOL{x}}{2}+24}\TIMES \sqrt{2}-{68\TIMES \SUPER{\SYMBOL{x}}{%
4}}-{34\TIMES \SUPER{\SYMBOL{x}}{2}}-{34}}{24\TIMES \sqrt{2}-{34}}}+\PAREN{-{%
\SYMBOL{x}\TIMES \sqrt{2}}+\SYMBOL{x}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}%
}{2\TIMES \sqrt{2}-{3}}}\TIMES \sqrt{\SUPER{\SYMBOL{x}}{2}+1}+\PAREN{\SUPER{%
\SYMBOL{x}}{2}\TIMES \sqrt{2}-{\SUPER{\SYMBOL{x}}{2}}}\TIMES \sqrt{\frac{2%
\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{-{\sqrt{2}}+1}\TIMES %
\nthroot{2}{4}}}}+\PAREN{\sqrt{2}-{1}}\TIMES \nthroot{2}{4}\TIMES \log{%
\PAREN{\frac{\PAREN{\PAREN{41\TIMES \SYMBOL{x}\TIMES \sqrt{2}-{58\TIMES %
\SYMBOL{x}}}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2%
\TIMES \sqrt{2}-{3}}}-{48\TIMES \SUPER{\SYMBOL{x}}{3}\TIMES \sqrt{2}}+68%
\TIMES \SUPER{\SYMBOL{x}}{3}}\TIMES \sqrt{\SUPER{\SYMBOL{x}}{2}+1}+\PAREN{%
\PAREN{-{41\TIMES \SUPER{\SYMBOL{x}}{2}}-{17}}\TIMES \sqrt{2}+58\TIMES \SUPER%
{\SYMBOL{x}}{2}+24}\TIMES \nthroot{2}{4}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{%
4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{24\TIMES \sqrt{2}-{34}}\TIMES \SUPER{%
\nthroot{2}{4}}{2}+\PAREN{48\TIMES \SUPER{\SYMBOL{x}}{4}+24\TIMES \SUPER{%
\SYMBOL{x}}{2}+24}\TIMES \sqrt{2}-{68\TIMES \SUPER{\SYMBOL{x}}{4}}-{34\TIMES %
\SUPER{\SYMBOL{x}}{2}}-{34}}{24\TIMES \sqrt{2}-{34}}}}+\PAREN{-{\sqrt{2}}+1}%
\TIMES \nthroot{2}{4}\TIMES \log{\PAREN{\frac{\PAREN{\PAREN{-{41\TIMES %
\SYMBOL{x}\TIMES \sqrt{2}}+58\TIMES \SYMBOL{x}}\TIMES \nthroot{2}{4}\TIMES %
\sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}-{48\TIMES \SUPER{%
\SYMBOL{x}}{3}\TIMES \sqrt{2}}+68\TIMES \SUPER{\SYMBOL{x}}{3}}\TIMES \sqrt{%
\SUPER{\SYMBOL{x}}{2}+1}+\PAREN{\PAREN{41\TIMES \SUPER{\SYMBOL{x}}{2}+17}%
\TIMES \sqrt{2}-{58\TIMES \SUPER{\SYMBOL{x}}{2}}-{24}}\TIMES \nthroot{2}{4}%
\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{4}}{2\TIMES \sqrt{2}-{3}}}+\PAREN{24%
\TIMES \sqrt{2}-{34}}\TIMES \SUPER{\nthroot{2}{4}}{2}+\PAREN{48\TIMES \SUPER{%
\SYMBOL{x}}{4}+24\TIMES \SUPER{\SYMBOL{x}}{2}+24}\TIMES \sqrt{2}-{68\TIMES %
\SUPER{\SYMBOL{x}}{4}}-{34\TIMES \SUPER{\SYMBOL{x}}{2}}-{34}}{24\TIMES \sqrt{%
2}-{34}}}}
\end{fricasmath}


\begin{fricasmath}{3}
{\PAREN{4\TIMES \sqrt{2}-{4}}\TIMES \sqrt{\frac{2\TIMES \sqrt{2}-{%
4}}{2\TIMES \sqrt{2}-{3}}}}%
\end{fricasmath}
\end{document}

Reply via email to