Polynomial division code
It looks like people did not sure whether this is a "do for me" question or you are asking anything else. Let me start to clarify something...
First you mentions polynom
, which is good at creating long division
with relatively easy code
\documentclass{article}
\usepackage{polynom}
\begin{document}
\polylongdiv{X^3-12X^2-42}{X-3}
\end{document}
But its output is relatively difficult to modify since it is hard-coded using tabular
internally. You would need to rewrite the output scheme. If it is not the desired, the remaining problem is whether you prefer polynom
's default output or the cross one you provide?
Second, Mathjax
, though extremely convenient over HTML, uses its own engine. It supports small amount of packages by rewriting them case by case. (Which may save some resources since one does not need line-breaking/page-breaking/etc anymore.) Thus it is hard to create a consistent user experience between MathJax
and polynom
, a probably-will-never-support package. You might either
- Concentrate on LaTeX and use htlatex to convert to HTML
- Write
Mathjax
-friendly syntax in your LaTeX file - Work on both LaTeX and
MathJax
and adopt that they are not not going to be the same.
Related videos on Youtube
George
Updated on March 01, 2020Comments
-
George over 3 years
I would like to give me an example of how to use the
polynom
package. More specifically, I want to write down on my latex editor the following polynomial division (source):Thanks in advance.
-
Werner over 9 yearsDid you know that you can right-click on the code and show the actual TeX behind it (since it's written in MathJax)?
-
Werner over 9 yearsIt may not be pretty, but this is the code used by MathJax...
-
Werner over 9 yearsAre you interested in reproducing the example as-is with/without
polynom
, or whatever it takes...?
-
-
alhelal over 5 yearsIs there any option
polylongadd
,polylongsub
,polylongmul
likepolylongdiv
in polynom packaage. -
alhelal over 5 yearsFor doing ibb.co/gW1zio