First time here? Check out the FAQ!

Ask Your Question
0

divide numerator and denominator by certain value

asked 13 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
4

answered 13 years ago

achrzesz gravatar image

updated 13 years ago

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)
Preview: (hide)
link

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 gravatar imagekcrisman ( 13 years ago )

Thank, that did the trick!

matthjes gravatar imagematthjes ( 13 years ago )

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 614 times

Last updated: Mar 12 '12