divide numerator and denominator by certain value

i like this post (click again to cancel)
0
i dont like this post (click again to cancel)

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.

asked Mar 12 '12

matthjes gravatar image matthjes
1 1
i like this answer (click again to cancel)
4
i dont like this answer (click again to cancel)

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)
link

posted Mar 12 '12

achrzesz gravatar image achrzesz
1741 5 18 39

updated Mar 12 '12

kcrisman gravatar image kcrisman
7812 20 78 170
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 (Mar 12 '12)

Thank, that did the trick!

matthjes (Mar 12 '12)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
Login/Signup to Post

Question tools

Tags:

Stats:

Asked: Mar 12 '12

Seen: 98 times

Last updated: Mar 12 '12

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.