public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gert Van den Eynde <gvdeynde@sckcen.be>
To: "Robert G. Brown" <rgb@phy.duke.edu>
Cc: gsl-discuss@sources.redhat.com
Subject: Re: Laguerre Polynomial overflow...
Date: Wed, 02 Oct 2002 00:03:00 -0000	[thread overview]
Message-ID: <20021002090340.413f6a83.gvdeynde@sckcen.be> (raw)
In-Reply-To: <Pine.LNX.4.44.0210011421180.25903-100000@ganesh.phy.duke.edu>

[-- Attachment #1: Type: text/plain, Size: 197 bytes --]


Dear Robert,

I cannot reproduce this using gsl-1.2 (my own compilation) on a SuSE 8.0 linux machine. Could you try to compile and run the attached program and see if that fails too?

Bye,

Gert


[-- Attachment #2: lag.c --]
[-- Type: text/plain, Size: 729 bytes --]

#include <stdlib.h>
#include <stdio.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_sf_laguerre.h>

int main () {

    double x = 0.0, step = 0.2;
    int    k = 0, l = 0;

    gsl_sf_result res;

    for (k = 0; k < 4; k ++) {
        for (x = 4.0; x < 6.1; x += step)  {
            gsl_sf_laguerre_n_e(k,0.5,x,&res);
            printf("L_%d(%.1f) = %.8f        error = %.8f\n",k,x,res.val,res.err);
        }
        printf("\n");
    }


    gsl_sf_laguerre_n_e(2,0.5,4.97290e+00,&res);
    printf("L_%d(%.5f) = %.8f        error = %.8f\n",2,4.97290e+00,res.val,res.err);

    gsl_sf_laguerre_n_e(3,0.5,4.97290e+00,&res);
    printf("L_%d(%.5f) = %.8f        error = %.8f\n",3,4.97290e+00,res.val,res.err);

    return 0;
}


  reply	other threads:[~2002-10-02  7:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01 11:40 Robert G. Brown
2002-10-02  0:03 ` Gert Van den Eynde [this message]
2002-10-02  4:32   ` Robert G. Brown
2002-10-02 11:49     ` Brian Gough
2002-10-02 12:32     ` Brian Gough

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=20021002090340.413f6a83.gvdeynde@sckcen.be \
    --to=gvdeynde@sckcen.be \
    --cc=gsl-discuss@sources.redhat.com \
    --cc=rgb@phy.duke.edu \
    /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).