asinh()
Function in Builtins
asinh(x): inverse hyperbolic sine, component-wise; defined over all reals.
import { asinh } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const asinh: <K extends FloatKey>(x: ReadonlyNode<K>) => Node<K>Parameters
xReadonlyNode<K>
Return value
Node<K>
Description
As the inverse
Gudermannian, asinh(tan(φ)) equals log(tan(π/4 + φ/2)) with one transcendental fewer
and no π/4 constant to truncate.
Examples
Example
import { fn, asinh, tan, f32T } from 'typeshade'
const invGd = fn('invGd', { phi: f32T }, ({ phi }) => asinh(tan(phi)))Targets
| Target | Support | Notes |
|---|---|---|
| WGSL (WebGPU) | Supported |
|
| GLSL ES 3.00 (WebGL2) | Supported |
|
| CPU oracle | Supported | Evaluated in f64 by the oracle. |
Source
src/core/ir/node.ts, line 1574, at commit 26de7be8