Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

For example:

sage: var('a b c d')

sage: q=(ab+c)/(bd+a+c)

sage: expand(numerator(q)/b)/expand(denominator(q)/b)

(a + c/b)/(d + a/b + c/b)

click to hide/show revision 2
No.2 Revision

For example:

sage: var('a b c d')

d') sage: q=(a*b+c)/(b*d+a+c)

sage: q=(ab+c)/(bd+a+c)

expand(numerator(q)/b)/expand(denominator(q)/b)

sage: expand(numerator(q)/b)/expand(denominator(q)/b)

(a + c/b)/(d + a/b + c/b)

c/b)