---
title: "atanh(): typeshade/core/ir의 IR 빌더 함수, TypeShade 컴파일러 API"
description: "atanh, typeshade/core/ir의 IR 빌더 함수입니다. atanh(x): 역쌍곡탄젠트를 성분별로 구합니다. 수학, 벡터, 텍스처 연산을 만드는 IR 빌더 함수입니다. 각 함수는 IR 노드를 반환합니다."
url: https://typeshade.dev/ko/api/atanh/
language: ko
---

# `atanh()`

함수, 내장 함수 분류

`atanh(x)`: 역쌍곡탄젠트를 성분별로 구합니다.

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

이 export는 IR 노드를 반환합니다. `"use typeshade"` 파일에서는 내장 함수 자체를 부릅니다: [`atanh()`](https://typeshade.dev/ko/reference/functions/atanh/)

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

## 구문

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

## 매개변수

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

## 반환값

`Node<K>`

## 설명

`|x| >= 1`은 WGSL과 GLSL 명세에 따라 정의되지 않습니다. 결과는 ±∞ 또는 NaN입니다. 반올림 때문에 값이 경계에 닿을 수 있으면, [`asin`](https://typeshade.dev/ko/api/asin/)과 [`acos`](https://typeshade.dev/ko/api/acos/)의 경우처럼 값을 `(-1, 1)` 열린 구간 안쪽으로 제한해야 합니다.

## 대상별 지원

| 대상 | 지원 | 비고 |
| --- | --- | --- |
| WGSL (WebGPU) | 지원 | `atanh(x)`. |
| GLSL ES 3.00 (WebGL2) | 지원 | `atanh(x)`. |
| CPU 오라클 | 지원 | 오라클이 `f64`로 계산합니다. |

## 함께 보기

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

## 소스

[`src/core/ir/node.ts`, 1353행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L1353), 커밋 af54ddad5 기준
