ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 30 Dec 2019 09:38:24 +0100Partial fraction decomposition over realshttps://ask.sagemath.org/question/49252/partial-fraction-decomposition-over-reals/ Hello.
I'm trying to find partial fraction decomposition of `1/(x**2-2*b**2)`
I use `f.partial_fraction(var)`, but I don't get the result.
How can I get an exact answer over the reals in general case?Sun, 29 Dec 2019 19:52:42 +0100https://ask.sagemath.org/question/49252/partial-fraction-decomposition-over-reals/Answer by Emmanuel Charpentier for <p>Hello.
I'm trying to find partial fraction decomposition of <code>1/(x**2-2*b**2)</code>
I use <code>f.partial_fraction(var)</code>, but I don't get the result.</p>
<p>How can I get an exact answer over the reals in general case?</p>
https://ask.sagemath.org/question/49252/partial-fraction-decomposition-over-reals/?answer=49256#post-id-49256Well...
sage: 1/product([(x-u[0])^u[1] for u in (x**2-2*b**2).roots(x=x)])
-1/((sqrt(2)*b + x)*(sqrt(2)*b - x))Mon, 30 Dec 2019 09:38:24 +0100https://ask.sagemath.org/question/49252/partial-fraction-decomposition-over-reals/?answer=49256#post-id-49256