asinh
On this page

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

x ReadonlyNode<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

TargetSupportNotes
WGSL (WebGPU) Supported

asinh(x).

GLSL ES 3.00 (WebGL2) Supported

asinh(x).

CPU oracle Supported

Evaluated in f64 by the oracle.

See also

Source

src/core/ir/node.ts, line 1345, at commit af54ddad5

Edit this page Report a problem