{"id":7603,"date":"2026-06-01T00:01:01","date_gmt":"2026-06-01T07:01:01","guid":{"rendered":"https:\/\/c-for-dummies.com\/blog\/?p=7603"},"modified":"2026-05-30T12:32:37","modified_gmt":"2026-05-30T19:32:37","slug":"that-series-that-has-no-name-but-equals-5e","status":"publish","type":"post","link":"https:\/\/c-for-dummies.com\/blog\/?p=7603","title":{"rendered":"That Series That Has No Name but Equals 5<em>e<\/em>"},"content":{"rendered":"<h2>Difficulty: &#9733; &#9733; &#9734; &#9734;<\/h2>\n<p>I&#8217;d like to know when mathematicians arrive at their &#8220;a-hah!&#8221; moments. Do they just have an equation pop into their head and mutter, &#8220;Golly, I wonder what that means?&#8221; Or do they wake up screaming in the middle of the night? Personally, I can well connect with the latter.<br \/>\n<!--more--><br \/>\nConsider Figure 1, which illustrates a mathematical Series That Has No Name:<\/p>\n<div id=\"attachment_7604\" style=\"width: 560px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7604\" src=\"https:\/\/c-for-dummies.com\/blog\/wp-content\/uploads\/2026\/05\/0601-Figure1.png\" alt=\"\" width=\"550\" height=\"415\" class=\"size-full wp-image-7604\" srcset=\"https:\/\/c-for-dummies.com\/blog\/wp-content\/uploads\/2026\/05\/0601-Figure1.png 550w, https:\/\/c-for-dummies.com\/blog\/wp-content\/uploads\/2026\/05\/0601-Figure1-300x226.png 300w, https:\/\/c-for-dummies.com\/blog\/wp-content\/uploads\/2026\/05\/0601-Figure1-398x300.png 398w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><p id=\"caption-attachment-7604\" class=\"wp-caption-text\">Figure 1. The frightening mathematical Series That Has No Name.<\/p><\/div>\n<p>This series is described as the sum of a value cubed over the same value factorial. It converges on the value 5<em>e<\/em>, Euler&#8217;s number, which was the topic of this blog&#8217;s <a href=\"https:\/\/c-for-dummies.com\/blog\/?p=4151\">June Exercise<\/a> in 2020.<\/p>\n<p>Your challenge for this month&#8217;s exercise is not to understand the equation or why it&#8217;s meaningful. No, your challenge is to code the equation so that the result is Euler&#8217;s number, <em>e<\/em>. For example, here&#8217;s output from my solution:<\/p>\n<pre>2.718282<\/pre>\n<p>This number has relevant mathematical properties that get the propeller heads all excited. But it&#8217;s important enough that a constant exists in the <code>math.h<\/code> header file, <code>M_E<\/code>. It&#8217;s equal to:<\/p>\n<p><code>2.71828182845904523536028747135266250<\/code><\/p>\n<p>So my solution&#8217;s answer is pretty dern close.<\/p>\n<p>To help you calculate the value, you can borrow from <a href=\"https:\/\/c-for-dummies.com\/blog\/?p=1080\">this Lesson<\/a> that covers factorials.<\/p>\n<p>Please try this exercise on your own before you peek at my solution, which I&#8217;ll post in a week.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Time to put your programming skills to the test for another mathematical operation thingy. <a href=\"https:\/\/c-for-dummies.com\/blog\/?p=7603\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-7603","post","type-post","status-publish","format-standard","hentry","category-exercise"],"_links":{"self":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7603"}],"version-history":[{"count":6,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7603\/revisions"}],"predecessor-version":[{"id":7627,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7603\/revisions\/7627"}],"wp:attachment":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}