Search DaTutorials:  
HOME
Php Tutorials
Articles
Basics
Date and Time
File Manipulations
Forms
Functions
General
Interactivity
MySql
Navigation
News,Shoutboxes and Blogs
Language Structure and Data Types
Searching
Security
String Manipulation
User Information and Stats
Search For a Tutorial
Php Reference

cos

(PHP 3, PHP 4 , PHP 5)

cos -- Cosine

Description

float cos ( float arg)

cos() returns the cosine of the arg parameter. The arg parameter is in radians.

Example 1. cos() example

<?php

echo cos(M_PI); // -1

?>

See also: acos(), sin(), tan(), and deg2rad().



Copyright © 2001-2004 The PHP Group
All rights reserved.

     Personals | Mortgage Calculator | Credit Cards | Free Ringtones | Credit Card Consolidation
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp