Ask Your Question

divide numerator and denominator by certain value

asked 2012-03-12 05:55:24 +0100

matthjes gravatar image


is it somehow possible to divide the numerator and denominator of a fraction by the same value? For example, (ab + c)/(bd + a + c) gets (a + c/b)/(d + a/b + c/b) if I divide it by b.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-03-12 08:23:38 +0100

achrzesz gravatar image

updated 2012-03-12 08:48:26 +0100

kcrisman gravatar image

For example:

sage: var('a b c d')

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

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

(a + c/b)/(d + a/b + c/b)
edit flag offensive delete link more



Hey @achrzesz, great answers lately - just a reminder that if you indent a code block (or highlight it and click the "010101" button) then it will "look right".

kcrisman gravatar imagekcrisman ( 2012-03-12 08:49:07 +0100 )edit

Thank, that did the trick!

matthjes gravatar imagematthjes ( 2012-03-12 09:21:09 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-03-12 05:55:24 +0100

Seen: 457 times

Last updated: Mar 12 '12