TANH(3G)

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

🌸 TANH(3G) β€” aka the hyperbolic tangent girlie 🌸

okay so bestie, welcome to tanh, a 3G manual page, and she's here to hand you back the hyperbolic tangent of whatever you pass her. That's it. That's the whole job. And she ate. πŸ’…


✨ NAME ✨

tanh β€” return the hyperbolic tangent of the parameter πŸ¦‹


πŸŽ€ DECLARATION πŸŽ€

genType tanh(genType x);

No cap, that's the whole signature. Look at her. So clean. So iconic. πŸ‘‘


πŸ’– PARAMETERS πŸ’–

  • x β€” the value whose hyperbolic tangent you want back. Hand her the number, she hands you the vibe. 🫢

🌈 DESCRIPTION 🌈

tanh returns the hyperbolic tangent of x, periodt. And if you're wondering how she's computing it, the hyperbolic tangent of x is computed as:

sinh ⁑ x
────────
cosh ⁑ x

(that's sinh x over cosh x, in case the fraction rendering is being dramatic on your terminal πŸ’€)


⭐ VERSION SUPPORT ⭐

So here's the tea on when tanh showed up in OpenGL Shading Language, by version. She was NOT invited to the first two parties, and then she was EVERYWHERE after that. Main character energy fr fr. ✨

  • OpenGL Shading Language 1.10 β€” - (not supported πŸ™ˆ)
  • OpenGL Shading Language 1.20 β€” - (still not supported 😭)
  • OpenGL Shading Language 1.30 β€” βœ” (supported πŸ’–)
  • OpenGL Shading Language 1.40 β€” βœ”
  • OpenGL Shading Language 1.50 β€” βœ”
  • OpenGL Shading Language 3.30 β€” βœ”
  • OpenGL Shading Language 4.00 β€” βœ”
  • OpenGL Shading Language 4.10 β€” βœ”
  • OpenGL Shading Language 4.20 β€” βœ”
  • OpenGL Shading Language 4.30 β€” βœ”
  • OpenGL Shading Language 4.40 β€” βœ”
  • OpenGL Shading Language 4.50 β€” βœ”
Function name in that table: tanh. Just so you know who we're talking about. πŸŽ€

🧚 SEE ALSO 🧚

The rest of the trig/hyperbolic squad, go say hi:

  • sin()
  • cos()
  • sinh()
  • cosh()

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 page, bestie 🫢 this was TANH(3G), rendered from the [FIXME: source] source and dated 01/03/2018 β€” she's a little vintage, she's a little FIXME, and honestly? obsessed. bye bestie, go compute some tangents. πŸŒΈβœ¨πŸ‘‘

πŸ“¦ where this page comes from