asinh()
Function in Builtins
asinh(x): inverse hyperbolic sine, component-wise; defined over all reals.
import { asinh } from 'typeshade/core/ir'
This export returns an IR node. A "use typeshade" file calls the builtin itself: asinh()
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
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/core/ir'
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 |
See also
Source
src/core/ir/node.ts, line 1345, at commit af54ddad5