I generally am fine with using the \polylongdiv{<dividend>}{<divisor>} macro from the polynom package: \polylongdiv{6x^3 + 5x^2 - 7}{3x^2 - 2x - 1}

but I was wondering,

How do I programmatically typeset Polynomial Long Division with connected parenthesis and line? (Possibly using TikZ)

Similar to this TeX.SX answer

enter image description here

but also programmatically typeset the whole division process like \polylongdiv and preferably make the parenthesis curve look centered(?) with respect to the divisor and flush left the quotient result on top / align with the leading coefficient of the divisor.

How can I achieve and define this, let's say, \mypolylongdiv{<dividend>}{<divisor>} macro? Thank you.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.