From owner-freebsd-numerics@FreeBSD.ORG Mon Jul 30 22:56:31 2012 Return-Path: Delivered-To: freebsd-numerics@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 395531065670 for ; Mon, 30 Jul 2012 22:56:31 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 039F78FC19 for ; Mon, 30 Jul 2012 22:56:30 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.5/8.14.5) with ESMTP id q6UMuUmT022826 for ; Mon, 30 Jul 2012 17:56:30 -0500 (CDT) (envelope-from stephen@missouri.edu) Message-ID: <5017111E.6060003@missouri.edu> Date: Mon, 30 Jul 2012 17:56:30 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-numerics@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Complex arg-trig functions X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2012 22:56:31 -0000 I will be posting my updates on this web page: http://people.freebsd.org/~stephen/ The file catrig.c contains implementations of cacos(h), casin(h), catan(h). I have been working on it everyday - I seem unable to put it down. I have now tested the following values for x and y: 1. Random values normally distributed N(0,1) 2. Random values e^X where X is uniformly distributed on [-300,300] 3. Random values 1+e^x or -1+e^x where X is uniformly distributed on [-20,0]. 4. Combinations from (2) and (3). The worst case errors seem to be below 4 ULP. It passes Peter Jeremy's program http://www.rulingia.com/~peter/ctest.c for checking edge cases like inf, nan, -0 etc. I am looking for suggestions: 1. For the implementations - improvements to the program to make it more accurate. 2. Other ranges of values to test for. 3. And yes, I am now ready at accept changes to the writing style. Thanks, Stephen