public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Patrick Alken <patrick.alken@colorado.edu>
To: gsl-discuss@sourceware.org
Subject: Re: New extension for Associated Legendre Functions (ALFs)
Date: Tue, 17 Mar 2009 16:23:00 -0000	[thread overview]
Message-ID: <20090317162536.GA22060@hippogriff.homeunix.org> (raw)
In-Reply-To: <m3wsaojsln.wl%bjg@network-theory.co.uk>

I should also mention that I played around with computing
ALFs using quad precision in the recurrence relations. In
doing this you can avoid underflow problems to degrees up
in the 10s of thousands (I only tried up to L,M = 20000).

But unfortunately I don't think sizeof(long double) is standard,
though I do think its guaranteed to be at least 10 bytes
by the latest ansi standard. So for now I left everything
in double precision.

Patrick

On Tue, Mar 17, 2009 at 11:28:52AM +0000, Brian Gough wrote:
> At Mon, 16 Mar 2009 15:31:37 -0600,
> Patrick Alken wrote:
> >   Most current implementations of associated Legendre functions
> > (ALFs), including the current GSL version fail due to underflow
> > above degree and order (L,M) 1900.  A 2002 paper by Holmes and
> > Featherstone shows that with a very simple scaling modification
> > this limit can be extended to 2700 in double precision. I have
> > recently needed to compute high degree ALFs so I have implemented
> > their algorithm and made a new GSL extension if others are interested.
> 
> Great work!
> 
> Incidentally, I found a copy of their paper online at
> http://www.cage.curtin.edu.au/~geogrp/research.html
> http://www.cage.curtin.edu.au/~will/20760279.pdf
> 
> -- 
> Brian Gough

      reply	other threads:[~2009-03-17 16:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 21:29 Patrick Alken
2009-03-17 11:37 ` Brian Gough
2009-03-17 16:23   ` Patrick Alken [this message]

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=20090317162536.GA22060@hippogriff.homeunix.org \
    --to=patrick.alken@colorado.edu \
    --cc=gsl-discuss@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).