Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

division algorithm

Hello,good morning! I am a beginner in the Sagemath program, can you give me a little help? How can I write a program that, given two polynomials p (x) and g (x), determines the Quotient and the remainder of the division of p (x) by g (x). Not being able to use the functions p // g or p% g, but can use the predefined functions .lc (), .degree (), .is unit ().