Available in versions: Dev (3.18) | Latest (3.17)

This is experimental functionality, and as such subject to change. Use at your own risk!

Inverse hyperbolic functions

Applies to ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

Some dialects may not support all trigonometric functions.

Using Settings.transformPatternsInverseHyperbolicFunctions, the following transformations can be achieved:

-- With Settings.transformPatternsInverseHyperbolicFunctions active, this:
SELECT
  LN(x + SQRT(SQUARE(x) + 1)),
  LN(x + SQRT(SQUARE(x) - 1)), 
  LN((1 + x) / (1 - x)) / 2),
  LN((x + 1) / (x - 1)) / 2)
FROM tab;

-- ... is transformed into the equivalent expression:
SELECT
  ASINH(x), -- LN(x + SQRT(SQUARE(x) + 1))
  ACOSH(x), -- LN(x + SQRT(SQUARE(x) - 1)) 
  ATANH(x), -- LN((1 + x) / (1 - x)) / 2)
  ACOTH(x)  -- LN((x + 1) / (x - 1)) / 2)
FROM tab;

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo