Advertisement
STANAANDREY

e^x using taylor

Oct 15th, 2022
715
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. p = 1.0
  2. f = 1.0
  3.  
  4.  
  5. def taylor(x, n):
  6.     if n == 0:
  7.         return 1
  8.  
  9.     global p, f
  10.     r = taylor(x, n - 1)
  11.     p *= x
  12.     f *= n
  13.  
  14.     r += p / f
  15.     return r
  16.  
  17.  
  18. x = int(input("x="))
  19. n = int(input("n="))
  20.  
  21. taylor = taylor(x, n)
  22. print("taylor: " + str(taylor))
  23.  
Advertisement
Comments
  • onegeorge555
    2 years
    # text 3.20 KB | 0 0
    1. https://pastebin.com/9EViet7W#5Cc4NYiH
    2.  
    3. Hi Nairaland readerz,Julian Assange was a great "sport" type,
    4. not many people realize that Julian Assange did brilliant things.
    5. Did you know his personal Diarys auctioned for 250,000 dollars
    6. and then there was Pams clothes..oh yeah, and a Niffty NFT for
    7. a mere few million.if you like conspiracy theory sites checkout
    8. these one below great for yup coming sports!!
    9.  
    10. https://polishmexican.blogspot.com/2006/02/blogger-mess-up.html
    11. http://polishmexican.blogspot.com/2007/08/actual-polish-mexican-content.html
    12. https://shirazsocialist.wordpress.com/2017/12/21/mccluskey-jewish-news-interview/
    13. https://psychedelicdungeon.wordpress.com/2010/09/04/wikileaks-pt-2-reaction/
    14. https://rightsfreedoms.wordpress.com/2021/12/15/rfk-jrs-heroic-resistance-to-the-cias-continuing-covid-coup-detat/
    15. https://psychedelicdungeon.wordpress.com/2010/09/02/wikifreaks-pt-1-eat-pray-leak/
    16. https://www.independentsentinel.com/potential-whistleblower-named-but-not-proven/
    17. https://therapidesnote.blogspot.com/2011/04/anonymous-commenters-on-computers.html
    18. https://www.dialoginternational.com/dialog_international/2021/08/anti-vaxxers-in-germany-querdenker-anti-semites-neo-nazis.html
    19. https://www.cringely.com/2021/09/10/bobs-9-11-post-from-20-years-ago-to-a-man-with-a-hammer/
    20. https://ganglandireland.blogspot.com/2009/11/fat-freddie-thompson-riding-shotgun-for.html
    21. https://ganglandireland.blogspot.com/2009/11/gangs-of-dublin.html
    22. https://discyonki.blogspot.com/2011/11/man-is-in-love-waterboys.html
    23. https://www.afepi-ireland.com/member/smith-albert
    24. https://kaildganglife.blogspot.com/2011/03/prison-gangs-one-mexican-mafia-v.html
    25. https://tfiglobalnews.com/2021/11/22/northern-irelands-secession-from-the-united-kingdom-is-almost-a-surety-now/
    26. https://www.independentsentinel.com/potential-whistleblower-named-but-not-proven/
    27. http://www.darkpolitricks.com/2020/02/am-i-going-down-google-plug-of.html
    28. http://www.darkpolitricks.com/2022/05/here-comes-world-war-iii.html
    29. http://www.darkpolitricks.com/2021/03/is-biden-worse-than-trump.html
    30. http://www.darkpolitricks.com/2022/03/two-things-can-be-right-at-same-time.html
    31. http://www.darkpolitricks.com/2021/12/the-internet-is-dead-can-you-prove-it.html
    32. http://www.darkpolitricks.com/2021/09/the-uk-is-becoming-more-despotic-every.html
    33. http://www.darkpolitricks.com/2022/01/how-many-conspiracies-have-to-turn-true.html
    34. http://www.darkpolitricks.com/2022/03/the-stupidity-of-russian-sanctions.html
    35. http://www.darkpolitricks.com/2022/04/who-are-we-standing-with-when-we-stand.html
    36. http://www.darkpolitricks.com/2021/05/cia-agent-admits-why-usa-cant-have.html
    37. http://www.darkpolitricks.com/2018/07/israel-is-first-terrorist-state-with.html
    38. http://www.darkpolitricks.com/2020/07/covid19-were-loving-it.html
    39. http://www.darkpolitricks.com/2020/04/help-me-create-real-altnews-search.html
    40.  
    41. Thats quite alot of sites eh!? were sure youll find interesting
    42. stuff there to read their files the lot, a real Burn Baby Burn list.
    43. infact where sure youll need this naughty daughty.
    44. Hang Tight.
    45. Lee chung.
    46. Big HI to Poe and Scarebear!! hoo helped compile Santas Naughty List
    47.  
    48. HEY KAMAL TRUCKER YOU MUST THINK WE ARE REALLY STUPID OR SOMETHING.
    49.  
    50. AGENT TALLAGHT WATCHES YOU .....
    51.  
Add Comment
Please, Sign In to add comment
Advertisement