[sage-support] Re: Partial Fraction Expansion for Polynomials with complex factors
If the factors are complex conjugates then it is already in partial fraction form. On Thursday, August 1, 2013 1:50:32 PM UTC+8, Rakhi Warriar wrote: > > I have the following function: > > f(x) = 1 > > x^2 + 4*x + 13 > > I need to find its partial fraction expansion. As the factors are complex > conjugates, I am not able to do using partial_fraction(). How can I find > this? > > Commands: > x = CC['x'].0 > f = 1/(x^2 + 4*x+ 13) > f.partial_fraction() > this gives error: > Traceback (click to the left of this block for traceback) > ... > AttributeError: 'FractionFieldElement_1poly_field' object has no > attribute 'partial_fraction' > > System used: Ubuntu 12.04, 32 bit, Intel Core i5 procesor > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Partial Fraction Expansion for Polynomials with complex factors
On Thursday, August 1, 2013 1:50:32 AM UTC-4, Rakhi Warriar wrote: > I have the following function: > > f(x) = 1 > > x^2 + 4*x + 13 > > I need to find its partial fraction expansion. As the factors are complex > conjugates, I am not able to do using partial_fraction(). How can I find > this? > > Commands: > x = CC['x'].0 > f = 1/(x^2 + 4*x+ 13) > f.partial_fraction() > this gives error: > Traceback (click to the left of this block for traceback) > ... > AttributeError: 'FractionFieldElement_1poly_field' object has no > attribute 'partial_fraction' > With Sage 5.10: sage: P.=CC[] sage: f=1/(x^2+4*x+13) sage: f 1.00/(x^2 + 4.00*x + 13.0) sage: f.partial_fraction_decomposition() (0, [(-0.167*I)/(x + 2.00 - 3.00*I), 0.167*I/(x + 2.00 + 3.00*I)]) sage: f.partial_fraction_decomposition()[1] [(-0.167*I)/(x + 2.00 - 3.00*I), 0.167*I/(x + 2.00 + 3.00*I)] sage: sum(f.partial_fraction_decomposition()[1]) 1.00/(x^2 + 4.00*x + 13.0) sage: f == sum(f.partial_fraction_decomposition()[1]) True sage: -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Partial Fraction Expansion for Polynomials with complex factors
Thanks rickhg12hs. Rakhi On Thursday, August 1, 2013 1:28:53 PM UTC+5:30, rickhg12hs wrote: > > On Thursday, August 1, 2013 1:50:32 AM UTC-4, Rakhi Warriar wrote: > >> I have the following function: >> >> f(x) = 1 >> >> x^2 + 4*x + 13 >> >> I need to find its partial fraction expansion. As the factors are complex >> conjugates, I am not able to do using partial_fraction(). How can I find >> this? >> >> Commands: >> x = CC['x'].0 >> f = 1/(x^2 + 4*x+ 13) >> f.partial_fraction() >> this gives error: >> Traceback (click to the left of this block for traceback) >> ... >> AttributeError: 'FractionFieldElement_1poly_field' object has no >> attribute 'partial_fraction' >> > With Sage 5.10: > > sage: P.=CC[] > sage: f=1/(x^2+4*x+13) > sage: f > 1.00/(x^2 + 4.00*x + 13.0) > sage: f.partial_fraction_decomposition() > (0, > [(-0.167*I)/(x + 2.00 - 3.00*I), > 0.167*I/(x + 2.00 + 3.00*I)]) > sage: f.partial_fraction_decomposition()[1] > [(-0.167*I)/(x + 2.00 - 3.00*I), > 0.167*I/(x + 2.00 + 3.00*I)] > sage: sum(f.partial_fraction_decomposition()[1]) > 1.00/(x^2 + 4.00*x + 13.0) > sage: f == sum(f.partial_fraction_decomposition()[1]) > True > sage: > > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.