This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: this seems to lost (complex norm, abs)
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Subject: Re: this seems to lost (complex norm, abs)
- From: Levente Farkas <lfarkas at mindmaker dot hu>
- Date: Thu, 20 Sep 2001 20:11:42 +0200
- Cc: STDC++ <libstdc++ at sources dot redhat dot com>
- Organization: Mindmaker Ltd.
- References: <3BA9E38E.575B65F6@mindmaker.hu> <fladzpahga.fsf@jambon.cmla.ens-cachan.fr>
- Reply-To: lfarkas at mindmaker dot hu
Gabriel Dos Reis wrote:
>
> Levente Farkas <lfarkas@mindmaker.hu> writes:
>
> | it contains 2 abs, 2 addition, 2 division, 3 multilication and 1 sqrt
> | may be a few cosine and tan help a bit more:-)
>
> You forgot erf(), gamma(), and some bits of Laplace transform().
>
> No seriously, I don't sarcasm is an appropriate setting for technical
> discussion. The "advanced" algorithm is to cover cases where the
> grammar school algorithm is intolerable. That is not fiction.
yes I understand Theodore's explanation (since he points to the
problem). than (at least in case of the complex specializations case)
I would use hypot which probably more "advanced" in most case (i.e.
optimized for the given platform...), but yes it's not a bug just
my 2c.
> I think the root of the bug is elsewhere.
there is no bug in abs, but I still think norm can be much simpler
(as it's suggested in http://gcc.gnu.org/ml/libstdc++/2001-08/msg00165.html)
-- Levente "Si vis pacem para bellum!"