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.Thu, 15 Dec 2022 11:06:06 +0100Simplify_full() and collect() togetherhttps://ask.sagemath.org/question/65355/simplify_full-and-collect-together/Dear all,
I am a novice with sagemath, and I use only a very small subset of its functionalities. I need to simplify the following expression, without using definitions:
var('c,f')
p_star_1 = ( (c+1)*f^2 - (2*c +1)*f - c - f ) / 2*(f^2-*2*f-1)
Here, I report the output of ``` p_star_1```, which in the real program is ```p_star_1 = something.simplify_full() ```.
I would like to express this as:
p_star_1 = c/2 + (2-f)*(1+ f)/(2*(1+2*f-f^2))
But using ``` collect.(c) ``` is not sufficient! How can I do this?
EDIT: I corrected the expression again, sorry.Boyko_BuThu, 15 Dec 2022 11:06:06 +0100https://ask.sagemath.org/question/65355/Simplifying rational expressionshttps://ask.sagemath.org/question/39111/simplifying-rational-expressions/I am working with a power series with coefficients being rational functions of several variables (everything over QQ). Is there any way to make sage automatically simplify the coefficients?
Here is an example of what is going on
k=RR.zero()+(-524288*x^2 - 1048576*x*y - 524288*y^2 + 524288*x*z + 524288*y*z)/(-1048576*z^2)
print k
print u
print u-k
print (simplify(u))
print u
print parent(u)
print parent(k)
print factor(u.numerator())/factor(u.denominator())
And results:
(1/2*x^2 + x*y + 1/2*y^2 - 1/2*x*z - 1/2*y*z)/z^2
(-524288*x^2 - 1048576*x*y - 524288*y^2 + 524288*x*z + 524288*y*z)/(-1048576*z^2)
0
(-524288*x^2 - 1048576*x*y - 524288*y^2 + 524288*x*z + 524288*y*z)/(-1048576*z^2)
(-524288*x^2 - 1048576*x*y - 524288*y^2 + 524288*x*z + 524288*y*z)/(-1048576*z^2)
Fraction Field of Multivariate Polynomial Ring in x, y, z over Rational Field
Fraction Field of Multivariate Polynomial Ring in x, y, z over Rational Field
(-1/2) * z^-2 * (-x - y + z) * (x + y)AntWed, 11 Oct 2017 06:20:26 +0200https://ask.sagemath.org/question/39111/simplify_full developmenthttps://ask.sagemath.org/question/8684/simplify_full-development/Hi! Could someone elaborate on the status of the simplification routines in SAGE? I've noticed that the simplify_full can't exactly be said to compete with e.g. mathematica's corresponding FullSimplify...
I don't know if the simplify functions operate as replacement rules or such, but if they do, I might be able to contribute in the development (I'm not much of a programmer though).
So could someone please explain about how simplify_full and other simplification functions work, and how I and others can participate? This post could work as an info for all who want to take part!H. ArponenTue, 31 Jan 2012 11:03:17 +0100https://ask.sagemath.org/question/8684/