On Wednesday, November 30, 2016 at 5:16:01 AM UTC, Chris Seberino wrote: > > Thanks. I'll look into rings. Never used those! >
e.g. sage: x,y = var('x,y'); f1(x,y) = (x + y)^2 ; f2(x,y) = x^2 + 2*x*y + y^2 ; diff = (f1 - f2 + 1).factor(); print "diff = ",diff 1 from above will become simply sage: R.<x,y> = QQ[]; f1 = (x + y)^2 ; f2 = x^2 + 2*x*y + y^2 ; f1 - f2 0 Whether you can get away with QQ (rational coefficients) is of course dependent upon your data... > > cs > > On Tuesday, November 29, 2016 at 4:47:08 PM UTC-6, Dima Pasechnik wrote: >> >> Do you mean that you want to simplify/reduce polynomial expressions? >> It's much better for this to use the appropriate (polynomial) rings, >> where you will be able to use the very powerful tools specifically for >> polynomials, rather than the symbolic ring. >> >> >> On Tuesday, November 29, 2016 at 5:55:48 PM UTC, Chris Seberino wrote: >>> >>> I'm trying to get Sage to do simplification of algebra equations. After >>> I expand some polynomial products I see identical terms on both >>> sides of the equation. >>> >>> How make Sage eliminate those? the simplify and full_simplify don't >>> seem to do it. >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.