division algorithm

asked 2017-05-12 06:06:52 -0500

Mathematic gravatar image

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 ().

edit retag flag offensive close merge delete


This looks like homework.

If you want some help, you should ask more precise questions related to your research in solving those exercises, especially where you are locked.

tmonteil gravatar imagetmonteil ( 2017-05-12 09:08:58 -0500 )edit