public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* hypergeometric function
@ 2001-12-19 13:20 Stefan Koch
  2001-12-01 23:20 ` Stefan Koch
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Stefan Koch @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

Hello,

I'm a new user of the gsl-library. Everything works well. But when I tried
to look at the hypergeometric function, I recognized a discontinuity (jump)
in the graphic-drawing of the function. I think this should not be so. I
used the following code segment:

void Test(void)
{
	double AktVal, x;
	int n, p, LoopX, MidX, MidY, CalcSize, gsl_error;
	CSize sizeTotal;
	gsl_sf_result result;

	sizeTotal = GetTotalSize();
	MidX = sizeTotal.cx/2.0;
	MidY = sizeTotal.cy/2.0;

	n = 3;
	p= 8;

	CalcSize = 1000;

	x = 0;
	gsl_error = gsl_sf_hyperg_1F1_int_e(-n, p+1, x, &result) ;
	if(gsl_error)	AfxMessageBox(gsl_strerror (gsl_error));
	AktVal = result.val;
	pDC->MoveTo(0, MidY - AktVal);
	for(LoopX = 0; LoopX < CalcSize; LoopX++ )
	{
		x += 0.1;
		gsl_error = gsl_sf_hyperg_1F1_int_e(-n, p+1, x, &result);
		if(gsl_error)	AfxMessageBox(gsl_strerror (gsl_error));
		AktVal = 100.0*result.val;
		pDC->LineTo( LoopX, MidY - AktVal);
	}
}

(Visual C++ 6.0, NT 4.0)

Can anybody tell me if there's something wrong with my code or with the
function? No error message occured.

Thanks for your help.

Best regards
Stefan Koch

mailto:s.koch@seh-zuelpich.de

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2001-12-19 13:20 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 13:20 hypergeometric function Stefan Koch
2001-12-01 23:20 ` Stefan Koch
2001-12-19 13:20 ` Brian Gough
2001-12-03  8:21   ` Brian Gough
     [not found]   ` <NEBBIBGCPKOPEIODNFDIEEIHCAAA.s.koch@seh-zuelpich.de>
2001-12-19 13:20     ` AW: " Brian Gough
2001-12-03 15:27       ` Brian Gough
2001-12-19 13:20       ` J.J. Gomez Cadenas
2001-12-05  2:07         ` J.J. Gomez Cadenas
2001-12-19 13:20         ` J.J. Gomez Cadenas
2001-12-19 13:20         ` Brian Gough
2001-12-05 12:20           ` Brian Gough
2001-12-19 13:20           ` J.J. Gomez Cadenas
2001-12-05 12:20             ` J.J. Gomez Cadenas
2001-12-19 13:20             ` Brian Gough
2001-12-06  8:34               ` Brian Gough
2001-12-19 13:20               ` J.J. Gomez Cadenas
2001-12-06  9:15                 ` J.J. Gomez Cadenas
2001-12-19 13:20                 ` J.J. Gomez Cadenas
2001-12-19 13:20 ` Dan, Ho-Jin
2001-12-02 18:35   ` Dan, Ho-Jin
2001-12-19 13:20   ` Dan, Ho-Jin

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).