PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<roundsinh>
Last updated: Mon, 16 Jul 2012

sin

(PHP 3, PHP 4, PHP 5)

sin -- 正弦

说明

float sin ( float arg )

sin() 返回参数 arg 的正弦值。参数 arg 的单位为弧度。

<?php

// 返回值的精度由 &php.ini; 中的 precision 指示确定
echo sin(deg2rad(60));  //  0.866025403 ...
echo sin(60);          // -0.304810621 ...

?>

参见 asin()cos()tan()deg2rad()




<roundsinh>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST