generically if I have an expression of the form

$\frac{a+b+c+d+..}{e}$..how can i use the formulas to rewrite in the form

$\frac{a}{e}+\frac{b}{e}+\frac{c}{e}+\frac{d}{e}+..$

+3 votes

Best answer

Then when you expand using distribute then last term is e*e^{-1}..right..Its not simplying to 1.? What should i do?

Actually if instead of \frac{}{} I use \over to write fractions, for example

ex:={a+b+c}\over b;

and then use collect factors, it does nothing. If I use simplify(ex) it shows

{\color{red}{\begin{verbatim}SyntaxError: unexpected character after line continuation character (, line 1)

At: /usr/lib/python3/dist-packages/sympy/parsing/sympy_parser.py(733): eval_expr /usr/lib/python3/dist-packages/sympy/parsing/sympy_parser.py(820): parse_expr

(2): \end{verbatim}}}Its not a major problem as we can use \frac{}{}, but it would be nice if this can be corrected at some point of time.