COSH(3G)
π COSH(3G) π
okay bestie, welcome to the cosh page from section 3G β the GLSL math-function corner of the manual. it's short, it's sweet, it's literally just a hyperbolic cosine. let's get into it π¦
β¨ NAME β¨
cosh β return the hyperbolic cosine of the parameter
π DECLARATION π
genType cosh(genType x);
that's it. that's the whole signature. she's simple, she's elegant, she ate π
πΈ PARAMETERS πΈ
xβ Specify the value whose hyperbolic cosine to return.
π DESCRIPTION π
so cosh returns the hyperbolic cosine of x. and the way it gets there? the hyperbolic cosine of x is computed as
e^x + e^βx
ββββββββββ
2
like, it's giving classic hyperbolic-trig energy. nothing shady, nothing hidden, just vibes and exponentials β¨
π VERSION SUPPORT π
here's the tea on which OpenGL Shading Language versions are down for cosh. the columns are the GLSL versions, and we're tracking the one and only function name, cosh:
cosh1.10β-1.20β-1.30β β1.40β β1.50β β3.30β β4.00β β4.10β β4.20β β4.30β β4.40β β4.50β β
so basically she showed up in 1.30 and has been booked and busy ever since. the 1.10 and 1.20 girlies simply did not have her yet π no cap.
π₯ SEE ALSO π₯
sin(), cos(), sinh()
the whole hyperbolic/trig friend group, iykyk π«Ά
π COPYRIGHT π
Copyright Β© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
π COPYRIGHT π
Copyright Β© 2011-2014 Khronos Group
and that's the whole page, bestie. this came from source[FIXME: source], dated01/03/2018, living under theCOSH(3G)name. go forth and compute your hyperbolics πβ¨π
π¦ where this page comes from
- ubuntu jammy: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- ubuntu noble: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms