{"id":168,"date":"2024-09-30T10:01:28","date_gmt":"2024-09-30T09:01:28","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=168"},"modified":"2025-03-04T04:16:36","modified_gmt":"2025-03-04T04:16:36","slug":"mwnci-cosh-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-cosh-function\/","title":{"rendered":"Mwnci cosh() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>cosh(<i><b>number<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The <i>cosh()<\/i> function returns the hyperbolic cosine of the number given.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>println(\"Test cosh(x) = 0.5 * (exp(x) + exp(-x))\")\r\nprintln(\"over the interval from -5 to 5\\n\")\r\nprintln(\" x cosh(x) 0.5 * (exp(x) + exp(-x))\")\r\nprintln(\"---------- ---------- ------------------------\")\r\ni=-5\r\nwhile (i &lt;= 5) {\r\n    coshdef = 0.5 * (exp(float(i)) + exp(float(-i)))\r\n    printf(\"%+10.6f\u00a0%+10.6f\u00a0%+10.6f\\n\",float(i),cosh(float(i)),coshdef)\r\n    i++\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax cosh(number) Description The cosh() function returns the hyperbolic cosine of the number given. Example println(&#8220;Test cosh(x) = 0.5 * (exp(x) + exp(-x))&#8221;) println(&#8220;over the interval from -5 to 5\\n&#8221;) println(&#8221; x cosh(x) 0.5 * (exp(x) + exp(-x))&#8221;) println(&#8220;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8220;) i=-5 while (i &lt;= 5) { coshdef = 0.5 * (exp(float(i)) + exp(float(-i))) printf(&#8220;%+10.6f\u00a0%+10.6f\u00a0%+10.6f\\n&#8221;,float(i),cosh(float(i)),coshdef) &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-cosh-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci cosh() Function&#8221;<\/span><\/a><\/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-168","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/168","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=168"}],"version-history":[{"count":2,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/168\/revisions"}],"predecessor-version":[{"id":1095,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/168\/revisions\/1095"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}