

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
tan() function in PHP
The tan() function returns the tangent of the specified value.
Syntax
tan(val)
Parameters
val − A value in radians
Return
The tan() function returns the tangent of the specified value val.
Example
<?php echo(tan(0) . "<br>"); echo(tan(1) . "<br>"); ?>
Output
0<br>1.5574077246549<br>
Example
Let us see another example −
<?php echo(tan(M_PI_4)); ?>
Output
1
Example
Let us see another example −
<?php echo(tan(0.50) . "<br>"); echo(tan(-0.50)); ?>
Output
0.54630248984379<br>-0.54630248984379
Example
Let us see another example −
<?php echo(tan(-5) . "<br>"); echo(tan(-10)); ?>
Output
3.3805150062466<br>-0.64836082745909
- Related Questions & Answers
- PHP tan() Function
- tan() function for complex number in C++
- file_exists() function in PHP
- basename( ) function in PHP
- chgrp()function in PHP
- chmod() function in PHP
- chown() function in PHP
- clearstatcache() function in PHP
- copy() function in PHP
- delete() function in PHP
- dirname()function in PHP
- disk_free_space() function in PHP
- disk_total_space() function in PHP
- diskfreespace() function in PHP
- fclose() function in PHP
Advertisements