On Tuesday, January 14, 2014 9:12:00 AM UTC-8, Andrew wrote: > > > > On Tuesday, 14 January 2014 17:21:41 UTC+1, rjf wrote: >> >> Division with remainder is available in Maxima as the command divide. >> e.g. divide(a, x-4,x) returns the pair, x-1 and 2 for >> quotient and remainder. >> LCM is available in Maxima as lcm. It probably has the semantics you >> expect. >> >> If you want a tableau displaying the steps in polynomial long division, >> or synthetic division (?) then >> Divide() won't satisfy your request. >> >> > > This wasn't what was being asked, but the syntax for doing this in sage > is: > sage: a.quo_rem(x-4) > (x - 1, 2) > A. >
Or for consistency with division by integers: sage: a // (x-4) # quotient x-1 sage: a % (x-4) # remainder 2 -- John -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.