libc/math: Fix implementation of tanh(),tanhf(),tanhl() API
authorVidisha Thapa <thapa.v@samsung.com>
Wed, 2 Aug 2017 05:46:25 +0000 (11:16 +0530)
committerVidisha Thapa <thapa.v@samsung.com>
Wed, 2 Aug 2017 05:46:25 +0000 (11:16 +0530)
commit6f91a66f3b4f8317d0baee2414d4247ea6e0903b
tree053541d38f8711aacabfca06cc96f4bc327956fc
parentae5e4e4b5bfe5147afe1d11ff54026c6d24b0944
libc/math: Fix implementation of tanh(),tanhf(),tanhl() API

tanh(),tanhf(),tanhl() implementations were wrong.

Example: For tanh(M_PI_4) value should be 0.65579524937 but we were getting 1.5248687267303
This is fixed in this patch.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
lib/libc/math/lib_tanh.c
lib/libc/math/lib_tanhf.c
lib/libc/math/lib_tanhl.c