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-*2f-1)
I would like to express this as:
p_star_1 = c/2 + (f^2 - f - 2)/(2*(f^2 - 2*f - 1 ))
But using collect.(c)
is not sufficient! How can I do this?