math.cosh

math.cosh
Function
Syntax
math.cosh(
  • num : number
)

Returns number
API math
Source Lua (source)

Return the hyperbolic cosine of num.

ExamplePrint the hyperbolic cosine of 1
Print the hyperbolic cosine of 1.
Code
<nowiki>
print(math.cosh(1))
    </nowiki>
Output 1.5430806348152
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.