asinh
이 페이지에서

asinh()

함수, 내장 함수 분류

asinh(x): inverse hyperbolic sine, component-wise; defined over all reals.

import { asinh } from 'typeshade'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

const asinh: <K extends FloatKey>(x: ReadonlyNode<K>) => Node<K>

매개변수

x ReadonlyNode<K>

반환값

Node<K>

설명

As the inverse Gudermannian, asinh(tan(φ)) equals log(tan(π/4 + φ/2)) with one transcendental fewer and no π/4 constant to truncate.

예제

예제

import { fn, asinh, tan, f32T } from 'typeshade'
const invGd = fn('invGd', { phi: f32T }, ({ phi }) => asinh(tan(phi)))

대상별 지원

대상지원비고
WGSL (WebGPU) 지원

asinh(x).

GLSL ES 3.00 (WebGL2) 지원

asinh(x).

CPU 오라클 지원

Evaluated in f64 by the oracle.

소스

src/core/ir/node.ts, 1574행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고