gen_hypergeo {cbbinom}R Documentation

Generalized hypergeometric function

Description

gen_hypergeo computes generalized hypergeometric function.

Usage

gen_hypergeo(U, L, x, tol, max_iter, check_mode, log)

Arguments

U, L

Numeric vectors for upper and lower values.

x

Numeric (1L) as common ratio.

tol

Numeric (1L) as convergence tolerance.

max_iter

Integer (1L) as iteration limit.

check_mode

Logical (1L) indicating whether the mode of x should be checked for obvious convergence failures.

log

Logical (1L) indicating whether result is given as log(result).

Value

Result of computation. Warnings are issued if failing to converge.

Note

Change log:

Author(s)

Xiurui Zhu

Examples

gen_hypergeo(U = c(1.1, 0.2, 0.3), L = c(10.1, 4 * pi), x = 1,
              max_iter = 10000L, tol = 1e-6, check_mode = TRUE, log = FALSE)

[Package cbbinom version 0.1.0 Index]