# Math.tanh ## 功能 双曲正切。返回 value 的双曲正切值。 ## 语法 ```bt Math.tanh(value) ``` ## 参数 | 参数 | 类型 | 必填 | 默认值 | 说明 | | ------ | ------ | ------ | ------ | ------ | | value | Number | 是 | 无 | 参与计算的数字。 | ## 返回值 | 类型 | 说明 | | ------ | ------ | | Int/Float | 返回 value 的双曲正切值。整数结果返回 Int,非整数或非有限结果返回 Float。 | ## 示例 ```bt result = Math.tanh(0) // 输出:0 print result ``` ## 注意事项 - 内部使用 Rust f64 的 tanh 运算。