Skip to content

Instantly share code, notes, and snippets.

@mick001
Created August 29, 2015 10:26
Show Gist options
  • Save mick001/d28df4f3117dbcb93ac4 to your computer and use it in GitHub Desktop.
Save mick001/d28df4f3117dbcb93ac4 to your computer and use it in GitHub Desktop.
Taylor series with Python and Sympy part 1. Full article at http://www.firsttimeprogrammer.blogspot.com/2015/03/taylor-series-with-python-and-sympy.html
# >>>
# Taylor expansion at n=1 x
# Taylor expansion at n=3 -x**3/6 + x
# Taylor expansion at n=5 x**5/120 - x**3/6 + x
# Taylor expansion at n=7 -x**7/5040 + x**5/120 - x**3/6 + x
# Taylor expansion at n=9 x**9/362880 - x**7/5040 + x**5/120 - x**3/6 + x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment