Skip to content

Instantly share code, notes, and snippets.

@anthonymorast
Last active Oct 3, 2021
Embed
What would you like to do?
from TaylorSeries import TaylorSeries
def f(x):
return 2 + x**3 + x**7 + x**2
if __name__ == '__main__':
terms = 15
center = 0
precision = 3
ts = TaylorSeries(f, terms, center)
ts.print_coefficients()
ts.print_equation()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment