ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 18 May 2022 21:17:20 +0200Simplify rational expression to polynomialhttps://ask.sagemath.org/question/62495/simplify-rational-expression-to-polynomial/ I'd like to check my computations for rational polynomial equations with sage. Here is an equation that gives the general form of a parabola with respect to a directrix and focus:
(ax+by+c)^2/(a^2+b^2) = (x-f1)^2 + (y-f2)^2
I'd like to obtain from this rational expression a polynomial expression in x,y. Is there a way to do this kind of computation automatically in Sage?Wed, 18 May 2022 14:53:38 +0200https://ask.sagemath.org/question/62495/simplify-rational-expression-to-polynomial/Comment by FrédéricC for <p>I'd like to check my computations for rational polynomial equations with sage. Here is an equation that gives the general form of a parabola with respect to a directrix and focus:</p>
<p>(ax+by+c)^2/(a^2+b^2) = (x-f1)^2 + (y-f2)^2</p>
<p>I'd like to obtain from this rational expression a polynomial expression in x,y. Is there a way to do this kind of computation automatically in Sage?</p>
https://ask.sagemath.org/question/62495/simplify-rational-expression-to-polynomial/?comment=62505#post-id-62505Take the numerator of the difference.Wed, 18 May 2022 21:17:20 +0200https://ask.sagemath.org/question/62495/simplify-rational-expression-to-polynomial/?comment=62505#post-id-62505