public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: maxgacode <maxgacode@gmail.com>
To: gsl-discuss@sourceware.org
Subject: Re: Debye functions.
Date: Sat, 25 Mar 2017 21:24:00 -0000	[thread overview]
Message-ID: <70579fe6-ef32-5dac-9918-8f7f21a929a9@gmail.com> (raw)
In-Reply-To: <213cda3e-0b6c-d4bb-ca4c-f868245b791b@verizon.net>

Il 24/03/2017 10:19, Ed Smith-Rowland ha scritto:
> Greetings,
>
> I've been looking at the Debye integrals
>
> D_n(x) = \frac{n}{x^n}\int_{0}^{x} \frac{t^n}{e^t - 1}dt
>
> The integrand is everywhere positive.
>
> The definite integral must be zero for x=0.

But the 1/x factor goes to zero and so you get a 0/0 indeterminate 
ratio. Computing the limit to zero returns 1.0!

>
> The values returned by gsl debye functions start at one for x=0 and
> monotonically decrease.


Please note the factor

\frac{n}{x^n}

That factor is the responsible of the observed behavior.


>
> The definite integral of a positive functions must start at zero and
> monotonically increase.
>
> Is it possible that we have a complementary Debye integral? Perhaps scaled?
>
> In any case, the functions can't match the formulas in the manual.
>

I don't think so. Please try to multiply the result of gsl_sf_debye_n(x) 
by n/x^n and see.

Moreover the Chapter 27 of Abramowitz and Stegun (page 998 of my ninth 
edition) is listing the values of the Debye functions, you can easily 
verify that GSL implementation is correct.


Hope this helps

Max

  reply	other threads:[~2017-03-25 21:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-24  9:20 Ed Smith-Rowland
2017-03-25 21:24 ` maxgacode [this message]
2017-03-27 19:04   ` Ed Smith-Rowland

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=70579fe6-ef32-5dac-9918-8f7f21a929a9@gmail.com \
    --to=maxgacode@gmail.com \
    --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).