In sympy, is it possible for ratsimp to simplify also a non fraction element?

Viewed 759

With this snippet:

from sympy import *
init_printing(use_latex='mathjax')
a,b,c=symbols('a b c')
ratsimp(a+1/b+1/c)

I get

a + (b + c)/(b*c)

while I would like to get

(a*b*c + b + c)/(b*c)

because I need the numerator of the fraction.

Is it possible?

Here it is a screenshot, I get Out[1] while I would like to get Out[2]:

enter image description here

1 Answers
Related