PHP 8.1.28 Released!

sin

(PHP 4, PHP 5, PHP 7, PHP 8)

sinSeno

Descrizione

sin(float $arg): float

La funzione sin() restituisce il seno di arg. Il parametro arg viene espresso in radianti.

Example #1 Esempio di uso di sin()

<?php

// La precisione dipende dalle direttive di precisione
echo sin(deg2rad(60)); // 0.866025403 ...
echo sin(60); // -0.304810621 ...

?>

Vedere anche: asin(), cos(), tan() e deg2rad().

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top