From: Vincent Lefevre <vincent@vinc17.net>
To: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Cc: Szabolcs Nagy <Szabolcs.Nagy@arm.com>,
Wilco.Dijkstra@arm.com, libc-alpha@sourceware.org,
Joe.Ramsay@arm.com
Subject: Re: [PATCH] aarch64: Improve SVE sin polynomial
Date: Fri, 4 Aug 2023 16:51:00 +0200 [thread overview]
Message-ID: <20230804145100.GB2741@zira.vinc17.org> (raw)
In-Reply-To: <p9u0msz79sga.fsf@coriandre.loria.fr>
On 2023-08-04 09:28:53 +0200, Paul Zimmermann via Libc-alpha wrote:
> Hi Szabolcs,
>
> > i'd say we want to minimize the maximum of
> >
> > (poly(x) - sin(x))/ulp(sin(x))
> >
> > instead of
> >
> > (poly(x) - sin(x))/sin(x)
>
> interesting question! I have asked the Sollya developers if this is
> possible.
I would say that a large change of the weight function (e.g.
a discontinuity point) is likely to generate an extrema for
the error function, which could affect the quality of the
minimax approximation. That's from the theory. In practice,
it is still possible that this works by chance, but I suppose
that this depends on the considered function and domain.
Concerning Sollya, doesn't it uses the derivative of the
error function (making the direct use of ulp impossible)?
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
next prev parent reply other threads:[~2023-08-04 14:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-03 14:21 Wilco Dijkstra
2023-08-03 15:22 ` Szabolcs Nagy
[not found] ` <p9u0msz79sga.fsf@coriandre.loria.fr>
2023-08-04 8:35 ` Szabolcs Nagy
2023-08-04 14:51 ` Vincent Lefevre [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-08-03 11:54 Joe Ramsay
2023-08-03 12:20 ` Paul Zimmermann
2023-10-03 10:48 ` Szabolcs Nagy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230804145100.GB2741@zira.vinc17.org \
--to=vincent@vinc17.net \
--cc=Joe.Ramsay@arm.com \
--cc=Paul.Zimmermann@inria.fr \
--cc=Szabolcs.Nagy@arm.com \
--cc=Wilco.Dijkstra@arm.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).