COSH(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

πŸ’– 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:

  • cosh
    • 1.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 Β© 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 Β© 2011-2014 Khronos Group


and that's the whole page, bestie. this came from source [FIXME: source], dated 01/03/2018, living under the COSH(3G) name. go forth and compute your hyperbolics πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from