This is literally my first program using sympy, based on an example from my 
calculus class:

from sympy import *

def main():
    x=symbols("x")
    f=exp(x**3)*cos(x**6)
    print(series(f,x,0,14))
    print(series(f,x,0,19))

if __name__ == "__main__":
    main()

The output:

1 + x**3 + x**6/2 + x**9/6 + x**12/24 + O(x**14)
1 + x**3 + x**6/2 + x**9/6 - 11*x**12/24 - 59*x**15/120 - 179*x**18/720 + 
O(x**19)

As you can see at least one of the answers is wrong.
Should I bother using sympy a second time?

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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 https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/82dec905-60e7-4514-b82a-ab538c139e41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to