PHP supports trigonometric and logarithmic operations
<?php $cos = cos(2 * M_PI); /* cos of 2*PI is 1 */ ?>