Skip to content
Snippets Groups Projects
Commit 3232e73c authored by Georg-Johann Lay's avatar Georg-Johann Lay
Browse files

LibF7: sinh: Fix loss of precision due to cancellation for small values.

libgcc/config/avr/libf7/
	* libf7-const.def [F7MOD_sinh_]: Add MiniMax polynomial.
	* libf7.c (f7_sinh): Use it instead of (exp(x) - exp(-x)) / 2
	when |x| < 0.5 to avoid loss of precision due to cancellation.
parent e47e836f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment