Ask Your Question
0

divide numerator and denominator by certain value

asked 2012-03-11 23:55:24 -0500

matthjes gravatar image

Hi,

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 delete

1 answer

Sort by ยป oldest newest most voted
4

answered 2012-03-12 02:23:38 -0500

achrzesz gravatar image

updated 2012-03-12 02:48:26 -0500

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 publish link more

Comments

1

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 ( 2012-03-12 02:49:07 -0500 )edit

Thank, that did the trick!

matthjes ( 2012-03-12 03:21:09 -0500 )edit

Your Answer

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

Add Answer

[hide preview]

Stats

Asked: 2012-03-11 23:55:24 -0500

Seen: 116 times

Last updated: Mar 12 '12