Polynomial long division with extra brackets

by Sebastian   Last Updated April 15, 2019 10:23 AM

the package polynom offers its style C, which is pretty close to my wishes, but not perfect:

I like to get the subtracted part in brackets with an leading minus like here: Polynomial long devision

Example:

\documentclass{standalone}

\usepackage{polynom}

\begin{document}

\polylongdiv[style=C,div=:,vars=x]{x^3-12x^2+5x+150}{x-5}

\end{document}

which leads to: enter image description here

I would like to get the upper result.

Does anyone know, how to achive this?

Thanks in advance!

Tags : polynom


Related Questions


Updated April 20, 2015 22:10 PM

Updated September 21, 2016 08:09 AM

Updated July 13, 2017 15:23 PM

Updated September 02, 2018 11:23 AM

Updated May 26, 2017 21:23 PM