Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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-*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?

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-*2f-1)

Here, I report the output of  p_star_1, which in the real program is something.simplify_full(). 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?

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-*2f-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 + (f^2  - f - 2)/(2*(f^2  - 2*f - 1 ))

But using collect.(c) is not sufficient! How can I do this?

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-*2f-1)
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 + (f^2  - f - 2)/(2*(f^2  - 2*f - 1 ))

But using collect.(c) is not sufficient! How can I do this?

EDIT: I corrected the expression

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 + (f^2  - f - 2)/(2*(f^2  - 2*f - 1 ))
(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 expressionexpression again, sorry.