Long division

20 views
Skip to first unread message

Gen

unread,
Mar 1, 2018, 4:34:01 PM3/1/18
to sympy
Hello,

I am new to sympy and trying to understand its functionality.

I would like to understand if it is possible to create a "step-by-step" representation of a long division.

Unfortunately, I did not find the answer to my question by searching the documentation.

Thank you in advance,
Gen 

Aaron Meurer

unread,
Mar 1, 2018, 4:56:47 PM3/1/18
to sy...@googlegroups.com
I don't think something like this exists already in SymPy. You can get
long division via the div() function, but the intermediary steps are
not saved. However, the division algorithm itself is relatively
simple, so it shouldn't be hard to write it out in such a way that
prints each intermediary step as it goes.

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/fc5cb12a-7ad8-4bfa-8d4c-68aa6b97bda3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Gen

unread,
Mar 1, 2018, 7:07:42 PM3/1/18
to sympy
Thank you Aaron. Understood.
Reply all
Reply to author
Forward
0 new messages