summaryrefslogtreecommitdiffstats
path: root/source/slang/diff.meta.slang
diff options
context:
space:
mode:
authorDarren Wihandi <65404740+fairywreath@users.noreply.github.com>2025-05-21 01:48:19 -0400
committerGitHub <noreply@github.com>2025-05-21 05:48:19 +0000
commitc4b6ef0bd6a7b7de131786c661c7e3423e318d7e (patch)
treec4b3b2b0cab861bb1b7cd182c797e9ce5c47bf1f /source/slang/diff.meta.slang
parent9059093bc764e901a9c4aaeb12471bf32028874f (diff)
Add inverse hyperbolic derivatives (#7173)
* Add inverse hyperbolic derivatives * Add test
Diffstat (limited to 'source/slang/diff.meta.slang')
-rw-r--r--source/slang/diff.meta.slang6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/diff.meta.slang b/source/slang/diff.meta.slang
index d32584db0..c24a8b11a 100644
--- a/source/slang/diff.meta.slang
+++ b/source/slang/diff.meta.slang
@@ -1970,6 +1970,12 @@ SIMPLE_UNARY_DERIVATIVE_IMPL(asin, T(1.0) / sqrt(T(1.0) - dpx.p * dpx.p))
SIMPLE_UNARY_DERIVATIVE_IMPL(acos, T(-1.0) / sqrt(T(1.0) - dpx.p * dpx.p))
// Arc-tan
SIMPLE_UNARY_DERIVATIVE_IMPL(atan, T(1.0) / (T(1.0) + dpx.p * dpx.p))
+// Arc-sinh
+SIMPLE_UNARY_DERIVATIVE_IMPL(asinh, T(1.0) / sqrt(dpx.p * dpx.p + T(1.0)))
+// Arc-cosh
+SIMPLE_UNARY_DERIVATIVE_IMPL(acosh, T(1.0) / sqrt(dpx.p * dpx.p - T(1.0)))
+// Arc-tanh
+SIMPLE_UNARY_DERIVATIVE_IMPL(atanh, T(1.0) / (T(1.0) - dpx.p * dpx.p))
// Atan2
__generic<T : __BuiltinFloatingPointType>