{"id":815,"date":"2020-02-09T21:19:43","date_gmt":"2020-02-09T21:19:43","guid":{"rendered":"https:\/\/tutorials.retopall.com\/?p=815"},"modified":"2020-10-28T09:16:09","modified_gmt":"2020-10-28T09:16:09","slug":"taylor-series-visualization","status":"publish","type":"post","link":"https:\/\/tutorials.retopall.com\/index.php\/2020\/02\/09\/taylor-series-visualization\/","title":{"rendered":"Taylor series visualization"},"content":{"rendered":"\n<p>Taylor series is a representation of a function as an infinite sum of a polynomial expression.  These series are really helpful for programming because of the complexity of different functions. Consequently, is really helpful in terms of optimization and also gives a really good approximation of a function.<\/p>\n\n\n\n<p>Taylor series of a function $f(x)$ centered in a is:<\/p>\n\n\n\n<p>$ f(x)=P(a)=\\displaystyle\\sum_{n=0}^{\\infty}   \\frac{f^{(n)}(a)}{n!}(x-a)^n $<\/p>\n\n\n\n<p> However, computers can&#8217;t do an infinit sum so the taylor series will be an aproximation of a determined function <\/p>\n\n\n\n<p> $ f(x) \\approx P(a,n)=f(a)+f'(a)(x-a)+\\frac{f&#8221;(a)}{2}(x-1)^2+&#8230;+\\frac{f^{(n)}}{n!}(x-1)^n   \\quad n\\in{ \\mathbb{N}}$ <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tutorials.retopall.com\/wp-content\/uploads\/2020\/02\/Picture1-1024x633.png\" alt=\"\" class=\"wp-image-833\" width=\"545\" height=\"336\" srcset=\"https:\/\/tutorials.retopall.com\/wp-content\/uploads\/2020\/02\/Picture1-1024x633.png 1024w, https:\/\/tutorials.retopall.com\/wp-content\/uploads\/2020\/02\/Picture1-300x185.png 300w, https:\/\/tutorials.retopall.com\/wp-content\/uploads\/2020\/02\/Picture1-768x474.png 768w, https:\/\/tutorials.retopall.com\/wp-content\/uploads\/2020\/02\/Picture1.png 1049w\" sizes=\"auto, (max-width: 545px) 100vw, 545px\" \/><\/figure><\/div>\n\n\n\n<p>When $a=0$ the series are called Mac-Laurin series<\/p>\n\n\n\n<p>It&#8217;s also very important to manage the error of the taylor series and we can calculate it with the Lagrange theorem where $b$ is the x point we want to calculate the error<\/p>\n\n\n\n<p>$|ERROR|\\leq sup{\\frac{f(c)^{(n+1)}}{(n+1)!}(b-a)^n} \\quad c\\in(a,b)$<\/p>\n\n\n\n<p>I have developed a simulation about the taylor series where you can visualize the taylor series of different function such as cosine, sine, logarithm and exponential.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link\" href=\"https:\/\/www.retopall.com\/p5.js\/PROJECTS\/projects\/taylorseries\/taylor.html\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"has-inline-color has-primary-color\"><strong>Taylor series visualization<\/strong><\/span><\/a><\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Taylor series is a representation of a function as an infinite sum of a polynomial expression. These series are really helpful for programming because of [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":817,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,10,6],"tags":[128,127],"class_list":["post-815","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","category-programming","category-simulation","category-tutorial","tag-lagrange-theorem","tag-taylor-series"],"_links":{"self":[{"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/posts\/815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/comments?post=815"}],"version-history":[{"count":27,"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/posts\/815\/revisions"}],"predecessor-version":[{"id":1003,"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/posts\/815\/revisions\/1003"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/media\/817"}],"wp:attachment":[{"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/media?parent=815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/categories?post=815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorials.retopall.com\/index.php\/wp-json\/wp\/v2\/tags?post=815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}