tan
Description
Syntax
tan(float $num): float
Parameters
num
The argument to process in radians
Return
The tangent of num
Examples
1
<? $num = deg2rad(360); $return = tan($num); echo $return;
-2.4492935982947E-16
2
<? for($i = 0; $i <= 360; ++$i) { $num = deg2rad($i); $return = tan($num); echo $return . PHP_EOL; }
0 0.017455064928218 0.034920769491748 0.052407779283041 0.06992681194351 0.087488663525924 0.10510423526568 0.1227845609029 0.14054083470239 0.15838444032454 0.17632698070846 0.19438030913772 0.21255656167002 0.23086819112556 0.24932800284318 0.26794919243112 0.28674538575881 0.30573068145866 0.32491969623291 0.34432761328967 0.3639702342662 0.38386403503542 0.40402622583516 0.4244748162096 0.44522868530854 0.466307658155 0.48773258856586 0.50952544949443 0.53170943166148 0.55430905145277 0.57735026918963 0.60086061902756 0.62486935190933 0.64940759319751 0.67450851684243 0.70020753820971 0.72654252800536 0.75355405010279 0.78128562650672 0.80978403319501 0.83909963117728 0.86928673781623 0.90040404429784 0.93251508613766 0.96568877480707 1 1.0355303137906 1.0723687100247 1.1106125148292 1.150368407221 1.1917535925942 1.2348971565351 1.2799416321931 1.3270448216204 1.3763819204712 1.4281480067421 1.4825609685127 1.5398649638146 1.6003345290411 1.6642794823505 1.7320508075689 1.8040477552714 1.8807264653463 1.9626105055052 2.0503038415793 2.1445069205096 2.2460367739042 2.3558523658238 2.4750868534163 2.6050890646938 2.7474774194546 2.9042108776758 3.0776835371753 3.2708526184841 3.4874144438409 3.7320508075689 4.0107809335358 4.3314758742842 4.7046301094785 5.1445540159703 5.6712818196177 6.313751514675 7.1153697223842 8.1443464279746 9.5143644542226 11.430052302761 14.300666256712 19.081136687728 28.636253282916 57.289961630759 1.6331239353195E+16 -57.28996163076 -28.636253282916 -19.081136687728 -14.300666256712 -11.430052302761 -9.5143644542226 -8.1443464279746 -7.1153697223842 -6.313751514675 -5.6712818196177 -5.1445540159703 -4.7046301094785 -4.3314758742842 -4.0107809335358 -3.7320508075689 -3.4874144438409 -3.2708526184841 -3.0776835371753 -2.9042108776758 -2.7474774194546 -2.6050890646938 -2.4750868534163 -2.3558523658238 -2.2460367739042 -2.1445069205096 -2.0503038415793 -1.9626105055052 -1.8807264653463 -1.8040477552714 -1.7320508075689 -1.6642794823505 -1.6003345290411 -1.5398649638146 -1.4825609685127 -1.4281480067421 -1.3763819204712 -1.3270448216204 -1.2799416321931 -1.2348971565351 -1.1917535925942 -1.150368407221 -1.1106125148292 -1.0723687100247 -1.0355303137906 -1 -0.96568877480707 -0.93251508613766 -0.90040404429784 -0.86928673781623 -0.83909963117728 -0.80978403319501 -0.78128562650672 -0.75355405010279 -0.72654252800536 -0.70020753820971 -0.67450851684243 -0.64940759319751 -0.62486935190933 -0.60086061902756 -0.57735026918963 -0.55430905145277 -0.53170943166148 -0.50952544949443 -0.48773258856586 -0.466307658155 -0.44522868530854 -0.4244748162096 -0.40402622583516 -0.38386403503542 -0.3639702342662 -0.34432761328967 -0.32491969623291 -0.30573068145866 -0.28674538575881 -0.26794919243112 -0.24932800284318 -0.23086819112556 -0.21255656167002 -0.19438030913772 -0.17632698070847 -0.15838444032454 -0.14054083470239 -0.1227845609029 -0.10510423526568 -0.087488663525924 -0.069926811943511 -0.052407779283042 -0.034920769491748 -0.017455064928218 -1.2246467991474E-16 0.017455064928217 0.034920769491748 0.052407779283041 0.06992681194351 0.087488663525924 0.10510423526568 0.1227845609029 0.14054083470239 0.15838444032454 0.17632698070847 0.19438030913772 0.21255656167002 0.23086819112556 0.24932800284318 0.26794919243112 0.28674538575881 0.30573068145866 0.32491969623291 0.34432761328967 0.3639702342662 0.38386403503542 0.40402622583516 0.4244748162096 0.44522868530854 0.466307658155 0.48773258856586 0.50952544949443 0.53170943166148 0.55430905145277 0.57735026918963 0.60086061902756 0.62486935190933 0.64940759319751 0.67450851684243 0.70020753820971 0.72654252800536 0.75355405010279 0.78128562650672 0.80978403319501 0.83909963117728 0.86928673781623 0.90040404429784 0.93251508613766 0.96568877480707 1 1.0355303137906 1.0723687100247 1.1106125148292 1.150368407221 1.1917535925942 1.2348971565351 1.2799416321931 1.3270448216204 1.3763819204712 1.4281480067421 1.4825609685127 1.5398649638146 1.6003345290411 1.6642794823505 1.7320508075689 1.8040477552714 1.8807264653463 1.9626105055051 2.0503038415793 2.1445069205096 2.2460367739042 2.3558523658238 2.4750868534163 2.6050890646938 2.7474774194546 2.9042108776758 3.0776835371753 3.2708526184841 3.4874144438409 3.7320508075689 4.0107809335358 4.3314758742842 4.7046301094784 5.1445540159703 5.6712818196177 6.313751514675 7.1153697223842 8.1443464279746 9.5143644542225 11.430052302761 14.300666256712 19.081136687728 28.636253282916 57.289961630759 5.4437464510651E+15 -57.289961630761 -28.636253282916 -19.081136687728 -14.300666256712 -11.430052302761 -9.5143644542225 -8.1443464279746 -7.1153697223842 -6.3137515146751 -5.6712818196177 -5.1445540159703 -4.7046301094785 -4.3314758742842 -4.0107809335358 -3.7320508075689 -3.4874144438409 -3.2708526184841 -3.0776835371753 -2.9042108776758 -2.7474774194546 -2.6050890646938 -2.4750868534163 -2.3558523658238 -2.2460367739042 -2.1445069205096 -2.0503038415793 -1.9626105055052 -1.8807264653463 -1.8040477552714 -1.7320508075689 -1.6642794823505 -1.6003345290411 -1.5398649638146 -1.4825609685127 -1.4281480067421 -1.3763819204712 -1.3270448216204 -1.2799416321931 -1.2348971565351 -1.1917535925942 -1.150368407221 -1.1106125148292 -1.0723687100247 -1.0355303137906 -1 -0.96568877480707 -0.93251508613766 -0.90040404429784 -0.86928673781623 -0.83909963117728 -0.80978403319501 -0.78128562650672 -0.75355405010279 -0.72654252800536 -0.70020753820971 -0.67450851684243 -0.64940759319751 -0.62486935190933 -0.60086061902756 -0.57735026918963 -0.55430905145277 -0.53170943166148 -0.50952544949443 -0.48773258856586 -0.466307658155 -0.44522868530854 -0.4244748162096 -0.40402622583516 -0.38386403503542 -0.3639702342662 -0.34432761328967 -0.32491969623291 -0.30573068145866 -0.28674538575881 -0.26794919243112 -0.24932800284318 -0.23086819112556 -0.21255656167002 -0.19438030913772 -0.17632698070847 -0.15838444032454 -0.14054083470239 -0.12278456090291 -0.10510423526568 -0.087488663525924 -0.069926811943511 -0.052407779283041 -0.034920769491748 -0.017455064928218 -2.4492935982947E-16