---
title: "asinh(): IR builder function in typeshade/core/ir, TypeShade"
description: "asinh, an IR builder function in typeshade/core/ir. asinh(x): inverse hyperbolic sine, component-wise; defined over all reals."
url: https://typeshade.dev/api/asinh/
language: en
---

# `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()`](https://typeshade.dev/reference/functions/asinh/)

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
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

```ts
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 | `asinh(x)`. |
| GLSL ES 3.00 (WebGL2) | Supported | `asinh(x)`. |
| CPU oracle | Supported | Evaluated in `f64` by the oracle. |

## See also

- [`asinh()`](https://typeshade.dev/reference/functions/asinh/)

## Source

[`src/core/ir/node.ts`, line 1345](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L1345), at commit af54ddad5
