|
|
◆ Hyp2f1()
| Function Hyp2f1 |
( |
A1 As |
Double, |
|
|
A2 As |
Double, |
|
|
B As |
Double, |
|
|
Z As |
Double, |
|
|
Optional Info As |
Long |
|
) |
| |
Hypergeometric function 2F1(a1, a2; b; z) (Gaussian hypergeometric function)
- Purpose
- This routine computes the hypergeometric function 2F1(a1, a2; b; z).
2F1(a1, a2; b; z) = Σ(a1)k*(a2)k/(b)k * z^k/k! (k = 1 to ∞)
- Returns
- Double
2F1(a1, a2; b; z).
- Parameters
-
| [in] | A1 | Argument a1. |
| [in] | A2 | Argument a2. |
| [in] | B | Argument b. |
| [in] | Z | Argument z. |
| [out] | Info | (Optional)
= 0: Successful exit.
= -4: The argument Z had an illegal value. (Z is outside the addressed range)
= 1: The internally estimated relative error exceeds 1.0e-12, range error is reported to indicate the partial loss of precision.
= 1: Other floating point range error. |
- Note
- z < -1 and z > 1 are not addressed except for some special cases.
- The parameters a1, a2 and b ranging from -1 to 7 are tested (-7 to 7 for some special cases). It is recommended to use within this range.
- The parameters a1, a2 and b are considered to be integer valued if they are within 1.0e-13 of the nearest integer.
- Reference
- netlib/cephes
|