Daemon News Ezine | BSD News | BSD Mall | BSD Support Forum | BSD Advocacy | BSD Updates |

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*To*: Bruce Evans <bde@xxxxxxxxxxx>*Subject*: Re: complex.h math functions*From*: Steve Kargl <sgk@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>*Date*: Sun, 30 Oct 2005 10:27:02 -0800*Cc*: freebsd-standards@xxxxxxxxxxx*Delivered-to*: freebsd-standards@xxxxxxxxxxx*In-reply-to*: <20051021194624.H598@xxxxxxxxxxxxxxx>*List-archive*: <http://lists.freebsd.org/pipermail/freebsd-standards>*List-help*: <mailto:freebsd-standards-request@freebsd.org?subject=help>*List-id*: Standards compliance <freebsd-standards.freebsd.org>*List-post*: <mailto:freebsd-standards@freebsd.org>*List-subscribe*: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, <mailto:freebsd-standards-request@freebsd.org?subject=subscribe>*List-unsubscribe*: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, <mailto:freebsd-standards-request@freebsd.org?subject=unsubscribe>*References*: <20051005032400.GA6736@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20051005191936.N51036@xxxxxxxxxxxxxxx> <20051006212602.GA40609@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20051007231439.F58005@xxxxxxxxxxxxxxx> <20051007190239.GA78674@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20051008052850.S59139@xxxxxxxxxxxxxxx> <20051010185153.GA55589@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20051012160109.I73531@xxxxxxxxxxxxxxx> <20051016184129.GA24651@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20051021194624.H598@xxxxxxxxxxxxxxx>*User-agent*: Mutt/1.4.2.1i

On Fri, Oct 21, 2005 at 08:50:53PM +1000, Bruce Evans wrote: > On Sun, 16 Oct 2005, Steve Kargl wrote: > > >On Wed, Oct 12, 2005 at 05:23:28PM +1000, Bruce Evans wrote: > > >Hopefully, this new version is closer to KNF. > > It still has only 4 chars for all secondary indents Strange. Hopefully fixed. I also removed the additional space in the comments after the *. This, of course, will make a diff fairly large, so I've attached s_ccosh.c. > >>use it. Listing all the special cases also serves as documentation. > >>I think the current order of special cases is not quite the best, > >>however. > > > >I don't follow why you think the special cases need to be re-order. > >Without knowing how the user base will abuse ccosh, there should > >be no prefered order. > > The current order is almost that in the standard. This order is not > bad but it might not give the simplest or shortest classification. > In particular, I think it might be better to group by 0's before > grouping by Infs and NaNs. I've re-arrange the code to do x = 0 and then y = 0 cases after the nearly-non-exceptional case. You may want to flip x = 0 and y = 0. I did not do this because I did not want to mess up your explanation of choice of signs. (discussion man page diff) > >>OK; could be more detailed. > > > >Do you want a section that describes the range of inputs that > >return a non-infinite results? Do you want a section that > >describes the return value and the exceptional cases? I'll > >have to do this later because I'll need to learning some > >additional mdoc features. > > Exceptional cases are mostly not described at all for the real functions, > so I wouldn't describe them better for the complex functions. I was > thinking mainly of doumenting the intention that the error is < 2 ulps > and noting cases where this isn't implemented in the BUGS section. You understand the ULPs better than I. If you don't have time or want to mess with mdoc, I'll write the section but you need to supply the knowledge. -- Steve

**Follow-Ups**:**Re: complex.h math functions***From:*Bruce Evans

**References**:**Re: complex.h math functions***From:*Steve Kargl

**Re: complex.h math functions***From:*Bruce Evans

**Re: complex.h math functions***From:*Steve Kargl

**Re: complex.h math functions***From:*Bruce Evans

**Re: complex.h math functions***From:*Steve Kargl

**Re: complex.h math functions***From:*Bruce Evans

**Re: complex.h math functions***From:*Steve Kargl

**Re: complex.h math functions***From:*Bruce Evans

**Re: complex.h math functions***From:*Steve Kargl

**Re: complex.h math functions***From:*Bruce Evans

- Prev by Date:
**Re: complex.h math functions** - Next by Date:
**Re: complex.h math functions** - Previous by thread:
**Re: complex.h math functions** - Next by thread:
**Re: complex.h math functions** - Index(es):