PHP tanh() 函数

PHP 教程 · 2019-01-27 10:57:15

实例

返回不同数的双曲正切:

<?php
echo(tanh(M_PI_4) . "<br>");
echo(tanh(0.50) . "<br>");
echo(tanh(-0.50) . "<br>");
echo(tanh(5) . "<br>");
echo(tanh(10) . "<br>");
echo(tanh(-5) . "<br>");
echo(tanh(-10));
?>

定义和用法

tanh() 函数返回一个数的双曲正切,定义为 sinh(x)/cosh(x)。

语法

tanh(number);

参数 描述
number 必需。规定一个数。

技术细节

返回值: number 的双曲正切。
返回类型: Float
PHP 版本: 4.1+

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Designing for Emotion

Designing for Emotion

Aarron Walter / Happy Cog / 2011-10-18 / USD 18.00

Make your users fall in love with your site via the precepts packed into this brief, charming book by MailChimp user experience design lead Aarron Walter. From classic psychology to case studies, high......一起来看看 《Designing for Emotion》 这本书的介绍吧!

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具