tanh
Description
Syntax
tanh(float $num): float
Parameters
num
The argument to process
Return
The hyperbolic tangent of num
Examples
1
<? $num = deg2rad(0); $return = tanh($num); echo $return; ?>
0
2
<? for($i = -180; $i <= 180; ++$i) { $num = deg2rad($i); $return = tanh($num); echo $return . PHP_EOL; } ?>
-0.99627207622075 -0.99613990488293 -0.99600305687075 -0.99586136738445 -0.99571466586577 -0.99556277580027 -0.99540551451313 -0.99524269295818 -0.99507411550004 -0.99489957968908 -0.99471887602909 -0.99453178773734 -0.9943380904969 -0.99413755220088 -0.99392993268855 -0.9937149834729 -0.99349244745951 -0.99326205865656 -0.99302354187553 -0.99277661242256 -0.99252097578008 -0.99225632727851 -0.99198235175779 -0.99169872321841 -0.99140510446174 -0.9911011467194 -0.99078648927139 -0.99046075905265 -0.9901235702479 -0.98977452387445 -0.98941320735268 -0.98903919406394 -0.98865204289565 -0.98825129777334 -0.9878364871793 -0.98740712365769 -0.98696270330583 -0.98650270525144 -0.98602659111559 -0.98553380446115 -0.98502377022663 -0.98449589414505 -0.98394956214783 -0.98338413975347 -0.98279897144087 -0.98219338000724 -0.98156666591047 -0.9809181065959 -0.98024695580744 -0.97955244288314 -0.97883377203507 -0.97809012161373 -0.97732064335712 -0.97652446162444 -0.97570067261491 -0.97484834357173 -0.97396651197164 -0.97305418470051 -0.97211033721521 -0.9711339126926 -0.97012382116593 -0.96907893864966 -0.96799810625322 -0.96688012928479 -0.96572377634598 -0.96452777841865 -0.96329082794493 -0.96201157790192 -0.96068864087259 -0.95932058811438 -0.95790594862747 -0.95644320822453 -0.95493080860423 -0.95336714643067 -0.9517505724214 -0.95007939044665 -0.94835185664272 -0.94656617854269 -0.94472051422791 -0.94281297150381 -0.94084160710399 -0.93880442592682 -0.93669938030884 -0.93452436933995 -0.93227723822526 -0.92995577769903 -0.92755772349639 -0.92508075588896 -0.92252249929055 -0.91988052193988 -0.91715233566727 -0.91433539575277 -0.91142710088359 -0.90842479321897 -0.90532575857111 -0.90212722671097 -0.89882637180843 -0.89542031301628 -0.89190611520815 -0.88828078988071 -0.88454129623088 -0.88068454241886 -0.87670738702846 -0.8726066407361 -0.86837906820021 -0.86402139018307 -0.85953028591693 -0.85490239572683 -0.85013432392194 -0.84522264196785 -0.84016389195162 -0.83495459035155 -0.82959123212316 -0.82407029511257 -0.8183882448081 -0.81254153944012 -0.80652663543869 -0.80033999325755 -0.7939780835723 -0.78743739385906 -0.78071443535927 -0.77380575043426 -0.76670792031219 -0.75941757322776 -0.75193139295362 -0.7442461277199 -0.73635859951643 -0.72826571376936 -0.71996446938177 -0.71145196912451 -0.70272543036107 -0.6937821960869 -0.68461974626029 -0.67523570939876 -0.66562787441124 -0.65579420263267 -0.6457328400242 -0.63544212949809 -0.62492062332306 -0.61416709556177 -0.60318055448854 -0.59196025493197 -0.58050571048341 -0.56881670550901 -0.55689330690021 -0.54473587549434 -0.53234507709491 -0.51972189301883 -0.50686763009609 -0.4937839300464 -0.48047277815645 -0.46693651118127 -0.45317782439382 -0.43919977770797 -0.42500580080179 -0.41059969717081 -0.39598564704382 -0.38116820909825 -0.36615232091646 -0.35094329813024 -0.33554683220664 -0.31996898683552 -0.30421619288674 -0.28829524191317 -0.27221327818439 -0.25597778924568 -0.23959659500614 -0.22307783537025 -0.20642995643743 -0.18966169530445 -0.17278206351636 -0.15580032922162 -0.13872599809769 -0.12156879312299 -0.1043386332806 -0.08704561128797 -0.069699970455219 -0.05231208078177 -0.034892414407949 -0.017451520543542 0 0.017451520543542 0.034892414407949 0.05231208078177 0.069699970455219 0.08704561128797 0.1043386332806 0.12156879312299 0.13872599809769 0.15580032922162 0.17278206351636 0.18966169530445 0.20642995643743 0.22307783537025 0.23959659500614 0.25597778924568 0.27221327818439 0.28829524191317 0.30421619288674 0.31996898683552 0.33554683220664 0.35094329813024 0.36615232091646 0.38116820909825 0.39598564704382 0.41059969717081 0.42500580080179 0.43919977770797 0.45317782439382 0.46693651118127 0.48047277815645 0.4937839300464 0.50686763009609 0.51972189301883 0.53234507709491 0.54473587549434 0.55689330690021 0.56881670550901 0.58050571048341 0.59196025493197 0.60318055448854 0.61416709556177 0.62492062332306 0.63544212949809 0.6457328400242 0.65579420263267 0.66562787441124 0.67523570939876 0.68461974626029 0.6937821960869 0.70272543036107 0.71145196912451 0.71996446938177 0.72826571376936 0.73635859951643 0.7442461277199 0.75193139295362 0.75941757322776 0.76670792031219 0.77380575043426 0.78071443535927 0.78743739385906 0.7939780835723 0.80033999325755 0.80652663543869 0.81254153944012 0.8183882448081 0.82407029511257 0.82959123212316 0.83495459035155 0.84016389195162 0.84522264196785 0.85013432392194 0.85490239572683 0.85953028591693 0.86402139018307 0.86837906820021 0.8726066407361 0.87670738702846 0.88068454241886 0.88454129623088 0.88828078988071 0.89190611520815 0.89542031301628 0.89882637180843 0.90212722671097 0.90532575857111 0.90842479321897 0.91142710088359 0.91433539575277 0.91715233566727 0.91988052193988 0.92252249929055 0.92508075588896 0.92755772349639 0.92995577769903 0.93227723822526 0.93452436933995 0.93669938030884 0.93880442592682 0.94084160710399 0.94281297150381 0.94472051422791 0.94656617854269 0.94835185664272 0.95007939044665 0.9517505724214 0.95336714643067 0.95493080860423 0.95644320822453 0.95790594862747 0.95932058811438 0.96068864087259 0.96201157790192 0.96329082794493 0.96452777841865 0.96572377634598 0.96688012928479 0.96799810625322 0.96907893864966 0.97012382116593 0.9711339126926 0.97211033721521 0.97305418470051 0.97396651197164 0.97484834357173 0.97570067261491 0.97652446162444 0.97732064335712 0.97809012161373 0.97883377203507 0.97955244288314 0.98024695580744 0.9809181065959 0.98156666591047 0.98219338000724 0.98279897144087 0.98338413975347 0.98394956214783 0.98449589414505 0.98502377022663 0.98553380446115 0.98602659111559 0.98650270525144 0.98696270330583 0.98740712365769 0.9878364871793 0.98825129777334 0.98865204289565 0.98903919406394 0.98941320735268 0.98977452387445 0.9901235702479 0.99046075905265 0.99078648927139 0.9911011467194 0.99140510446174 0.99169872321841 0.99198235175779 0.99225632727851 0.99252097578008 0.99277661242256 0.99302354187553 0.99326205865656 0.99349244745951 0.9937149834729 0.99392993268855 0.99413755220088 0.9943380904969 0.99453178773734 0.99471887602909 0.99489957968908 0.99507411550004 0.99524269295818 0.99540551451313 0.99556277580027 0.99571466586577 0.99586136738445 0.99600305687075 0.99613990488293 0.99627207622075