{"id":805,"date":"2024-11-29T12:12:33","date_gmt":"2024-11-29T12:12:33","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=805"},"modified":"2024-11-29T12:12:33","modified_gmt":"2024-11-29T12:12:33","slug":"mwnci-tanh-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-tanh-function\/","title":{"rendered":"Mwnci tanh() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>tanh<strong>(<em>number<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>tanh()<\/i> function returns the hyperbolic tangent of argument.<\/p>\n<h2>Example<\/h2>\n<pre>\r\nprintf(\"HYPERBOLIC TANGENT TEST\\n\\n\")\r\nprintf(\" x tan(x) definition\\n\")\r\nprintf(\" ----- -------- ----------\\n\")\r\ni = -2.1\r\nwhile ((i += 0.1) <= 2.0) {\r\n   eplusx = exp(i)\r\n   eminusx = exp (-i)\r\n   printf(\" %+5.2f %+8.5f %+8.5f\\n\",i,tanh(i),(eplusx - eminusx) \/ (eplusx + eminusx))\r\n}\r\n\r\n\r\nHYPERBOLIC TANGENT TEST\r\n\r\n x tan(x) definition\r\n ----- -------- ----------\r\n -2.00 -0.96403 -0.96403\r\n -1.90 -0.95624 -0.95624\r\n -1.80 -0.94681 -0.94681\r\n -1.70 -0.93541 -0.93541\r\n -1.60 -0.92167 -0.92167\r\n -1.50 -0.90515 -0.90515\r\n -1.40 -0.88535 -0.88535\r\n -1.30 -0.86172 -0.86172\r\n -1.20 -0.83365 -0.83365\r\n -1.10 -0.80050 -0.80050\r\n -1.00 -0.76159 -0.76159\r\n -0.90 -0.71630 -0.71630\r\n -0.80 -0.66404 -0.66404\r\n -0.70 -0.60437 -0.60437\r\n -0.60 -0.53705 -0.53705\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax tanh(number) Description The tanh() function returns the hyperbolic tangent of argument. Example printf(&#8220;HYPERBOLIC TANGENT TEST\\n\\n&#8221;) printf(&#8221; x tan(x) definition\\n&#8221;) printf(&#8221; &#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;-\\n&#8221;) i = -2.1 while ((i += 0.1)<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-805","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=805"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/805\/revisions"}],"predecessor-version":[{"id":806,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/805\/revisions\/806"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}