PHP.nl

cos

Laatst bijgewerkt:

cos

Cosine

float **cos** float $num
returns the cosine of the 

parameter. The parameter is in radians. cos``num``num

numAn angle in radians

The cosine of num

Voorbeeld: example

<?php

echo cos(M_PI); // -1

?>

acos``sin``tan``deg2rad