Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: higher precision doubles Date: Mon, 08 Aug 2011 19:16:17 +0200 Organization: albasani.net Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net Lg/nHSNwnKAXLZKBM18mPeqHGo01DAs/J0yDRWbGvGWJH6zGtlTRrRIJXaSYJ2cbltQvpZLkLQ3a7Y1pCdhx/Q== NNTP-Posting-Date: Mon, 8 Aug 2011 17:16:20 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="fFBanO3+ub0On22Zv1lALtUdbngb1U7in12+o9LbEusy8l4+qAAqX1RvsLCNM502OxuiY0z/uvcAwWqlK8PRmM3MRj0XooaHZAdfhMB5zUz7M5zS5exezgU+GzfMEttl"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110706 Firefox/5.0 SeaMonkey/2.2 In-Reply-To: Cancel-Lock: sha1:zCwVIaOtQeLuWoSIFR8762tTrKI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6872 Jan Burse schrieb: > According to stack overflow there are a couple of solutions around: > http://stackoverflow.com/questions/6979926/higher-precision-doubles-and-trigonometric-functions-in-java > > Apfloat and JScience. But I did not yet have time to put my hands on Apfloat, and it is also not clear what forms the basis for the algorithms there. Usually Taylor expansion leads to nowhere. For sin and the like for example developing polynom coefficents from a set of orthogonal chebyshev polynoms gives better results. But of course there is a tradeof between accuracy and computation time. See for example page 17/18 of: http://rnc7.loria.fr/astafiev.pdf Bye