Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 4069 by [email protected]: series(log(x)**a*exp(-b*x), x, x0=1, n=2) wrong result
http://code.google.com/p/sympy/issues/detail?id=4069

a, b, x = symbols('a b x', real=True)
series(log(x)**a*exp(-b*x), x, x0=1, n=2)

returns wrong result: O(log(x)**2)


@XFAIL
def test_X12():
    # Look at the generalized Taylor series around x = 1
    # Result => (x - 1)^a/e^b [1 - (a + 2 b) (x - 1) / 2 + O((x - 1)^2)]
# http://www.wolframalpha.com/input/?i=Series%5BLog%5Bx%5D%5Ea*Exp%5B-b*x%5D%2C+%7Bx%2C1%2C0%7D%5D
    a, b, x = symbols('a b x', real=True)
    # series returns O(log(x)**2)
    assert (series(log(x)**a*exp(-b*x), x, x0=1, n=2) ==
            (x - 1)**a/e**b*(1 - (a + 2*b)*(x - 1)/2 + O((x - 1)**2))

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to