{"id":251,"date":"2009-04-13T09:24:28","date_gmt":"2009-04-13T16:24:28","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=1158"},"modified":"2009-04-13T09:24:28","modified_gmt":"2009-04-13T16:24:28","slug":"sinh-cosh","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=251","title":{"rendered":"sinh &#038; cosh"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\nfunction sinh(x:Number):Number{\r\n\treturn (Math.pow(Math.E, x) - Math.pow(Math.E, -x)) * 0.5;\r\n}\r\n\r\nfunction cosh(x:Number):Number{\r\n\treturn (Math.pow(Math.E, x) + Math.pow(Math.E, -x)) * 0.5;\r\n}\r\n<\/pre>\n<p>Needed sinh and cosh today. Easy enough to create with existing math functions. If you needed more speed you could inline these and replace Math.E with 2.71828183.<\/p>\n<p>Got the math over at <a href=\"http:\/\/en.wikipedia.org\/wiki\/Hyperbolic_trigonometric_function#Standard_algebraic_expressions\" target=\"blank\">wikipedia<\/a> (as usual). <\/p>\n","protected":false},"excerpt":{"rendered":"<p>function sinh(x:Number):Number{ return (Math.pow(Math.E, x) &#8211; Math.pow(Math.E, -x)) * 0.5; } function cosh(x:Number):Number{ return (Math.pow(Math.E, x) + Math.pow(Math.E, -x)) * 0.5; } Needed sinh and cosh today. Easy enough to create with existing math functions. If you needed more speed you could inline these and replace Math.E with 2.71828183. Got the math over at wikipedia [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[121,94],"tags":[3,4],"class_list":["post-251","post","type-post","status-publish","format-standard","hentry","category-math","category-misc","tag-actionscript","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=251"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}