I have forgotten

• https://me.yahoo.com
COST (GBP)
1.40
10.33
0

# hypergeo

Confluent hypergeometric function
Controller: CodeCogs
Contents

C++
Excel

## Hypergeo

 doublehypergeo( double a double b double x )
Computes the confluent hypergeometric function

$f(a,b;&space;x)&space;=&space;1&space;+&space;\frac{a&space;x^1}{b&space;1!}&space;+&space;\frac{a(a+1)&space;x^2}{b(b+1)&space;2!}&space;+&space;...$

Many higher transcendental functions are special cases of this power series.

As is evident from the formula, b must not be a negative integer or zero unless a is an integer with $\inline&space;&space;0&space;>=&space;a&space;>&space;b$.

The routine attempts both a direct summation of the series and an asymptotic expansion. In each case error due to roundoff, cancellation, and nonconvergence is estimated.

The result with smaller estimated error is returned.

## Accuracy:

Tested at random points (a, b, x), all three variables ranging from 0 to 30. <pre> Relative error: arithmetic domain # trials peak rms DEC 0,30 2000 1.2e-15 1.3e-16 IEEE 0,30 30000 1.8e-14 1.1e-15 </pre>

Larger errors can be observed when b is near a negative integer or zero. Certain combinations of arguments yield serious cancellation error in the power series summation and also are not in the region of near convergence of the asymptotic series. An error message is printed if the self-estimated relative error is greater than 1.0e-12.

## References:

Cephes Math Library Release 2.0: April, 1987

### Parameters

 x argument

### Authors

Stephen L. Moshier Copyright 1984, 1987, 1988, 2000
Updated by Will Bateman
##### Source Code

Source code is available when you buy a Commercial licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.