mailing list of musl libc
 help / color / mirror / Atom feed
* [musl] large errors with long double functions
@ 2021-01-07 13:36 Paul Zimmermann
  0 siblings, 0 replies; only message in thread
From: Paul Zimmermann @ 2021-01-07 13:36 UTC (permalink / raw)
  To: musl


I notice large errors for some long double functions (on x86_64) with

expm1l  0x2.c516edaf5e96a33cp+12l 9700.65
lgammal -0x2.74ff92c01f0d82acp+0l 9.08e+19
sinhl   0x2.c516edaf5e96a33cp+12l 9700.65
tgammal -0x2.8d19fd20f3aa62cp+4l 3.69e+19
powl    0xd.64229ca81fffep+16368l,-0x1.b9b6d40000000002p-48l 532.341

The lgammal/tgammal errors are not surprising, but those for expm1l and sinhl
are, and the fact that the input/error are the same for expm1l and sinhl
suggest that one function is using the other one, and maybe that latter one
only provides double precision accuracy.

For powl also it is surprising, since other libraries typically yield
errors < 1 ulp.

Best regards,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-07 13:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-07 13:36 [musl] large errors with long double functions Paul Zimmermann

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ \
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:

code repositories for the project(s) associated with this inbox:

AGPL code for this site: git clone