search for in the all php.net sites this mirror only function list online documentation bug database Site News Archive All Changelogs just pear.php.net just pecl.php.net just talks.php.net general mailing list developer mailing list documentation mailing list
view this page in
(PHP 4, PHP 5)
sin — 正弦
sin() 返回参数 arg 的正弦值。参数 arg 的单位为弧度。
Example #1 sin()
<?php// 返回值的精度由 &php.ini; 中的 precision 指示确定echo sin(deg2rad(60)); // 0.866025403 ...echo sin(60); // -0.304810621 ...?>
参见: asin()、 cos()、 tan()和 deg2rad()。