★ wanayoo — archive 1999 http://fr.php.net/manual/ro/function.sin.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<roundsinh>
view the version of this page
Last updated: Thu, 10 Feb 2005

sin

(PHP 3, PHP 4 , PHP 5)

sin -- Sine

Description

float sin ( float arg)

sin() returns the sine of the arg parameter. The arg parameter is in radians.

Exemplu 1. sin() example

<?php

// Precision depends on your precision directive
echo sin(deg2rad(60));  //  0.866025403 ...
echo sin(60);          // -0.304810621 ...

?>

See also: asin(), cos(), tan(), and deg2rad().



add a note add a note User Contributed Notes
sin
Merve
28-Jul-2003 06:29
Remember, unless you specify, calculations are made in radians, so that's why you might be getting approximately 0.89 for the sine of 90.

<roundsinh>
 Last updated: Thu, 10 Feb 2005
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Sun Feb 20 05:11:36 2005 CET