1. Home
  2. Computing & Technology
  3. PHP / MySQL

Cos () PHP Function

By Angela Bradley, About.com

Definition: The Cos () Function, calculates the cosine of the given number and returns it in radians. It is written as Cos (your_number) ;
Also Known As: Cosine, Cos
Examples:
<?php
echo cos(M_PI) ;
?>
This returns a value of -1
Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. PHP Functions
  5. PHP Cosine - PHP Cos - Cosine Function

©2009 About.com, a part of The New York Times Company.

All rights reserved.