---
title: "acosh(): IR builder function in typeshade/core/ir, TypeShade"
description: "acosh, an IR builder function in typeshade/core/ir. acosh(x): inverse hyperbolic cosine, component-wise."
url: https://typeshade.dev/api/acosh/
language: en
---

# `acosh()`

Function in Builtins

`acosh(x)`: inverse hyperbolic cosine, component-wise.

`import { acosh } from 'typeshade/core/ir'`

This export returns an IR node. A `"use typeshade"` file calls the builtin itself: [`acosh()`](https://typeshade.dev/reference/functions/acosh/)

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

## Syntax

```ts
const acosh: <K extends FloatKey>(x: ReadonlyNode<K>) => Node<K>
```

## Parameters

**`x` `ReadonlyNode<K>`**

## Return value

`Node<K>`

## Description

`x < 1` is undefined per the WGSL and GLSL specs (NaN on most drivers); guard with `max(x, f32(1))` when rounding can push an in-domain operand under 1, as with [`asin`](https://typeshade.dev/api/asin/) and [`acos`](https://typeshade.dev/api/acos/).

## Targets

| Target | Support | Notes |
| --- | --- | --- |
| WGSL (WebGPU) | Supported | `acosh(x)`. |
| GLSL ES 3.00 (WebGL2) | Supported | `acosh(x)`. |
| CPU oracle | Supported | Evaluated in `f64` by the oracle. |

## See also

- [`acosh()`](https://typeshade.dev/reference/functions/acosh/)
- [`asin`](https://typeshade.dev/api/asin/)
- [`acos`](https://typeshade.dev/api/acos/)

## Source

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