sympy_gauss_jac Namespace Reference

Functions

def main (n, alpha, beta, n_dig)
 

Variables

 parser = argparse.ArgumentParser(description="Compute Gauss-Jacobi quadrature.")
 
 type
 
 int
 
 default
 
 help
 
 float
 
 args = parser.parse_args()
 

Function Documentation

◆ main()

def sympy_gauss_jac.main (   n,
  alpha,
  beta,
  n_dig 
)

Definition at line 35 of file sympy_gauss_jac.py.

35 def main(n, alpha, beta, n_dig):
36  roots, weights = gauss_jacobi(n=n, alpha=alpha, beta=beta, n_digits=n_dig)
37  for idx, root in enumerate(roots):
38  sign = " " if root >= 0 else ""
39  root_str = f"{float(root):23.17E}"
40  weight_str = f"{float(weights[idx].evalf()):23.17E}"
41  print(f"Root:{sign} {root_str} Weight: {weight_str}")
42 
43 
int main(int argc, char *argv[])
Definition: c_cli_gjpq.c:24
subroutine gauss_jacobi(npts, alpha, beta, x, wts, method)
Compute the Gauss-Jacobi quadrature nodes and weights.

Variable Documentation

◆ args

sympy_gauss_jac.args = parser.parse_args()

Definition at line 51 of file sympy_gauss_jac.py.

◆ default

sympy_gauss_jac.default

Definition at line 46 of file sympy_gauss_jac.py.

◆ float

sympy_gauss_jac.float

Definition at line 47 of file sympy_gauss_jac.py.

◆ help

sympy_gauss_jac.help

Definition at line 46 of file sympy_gauss_jac.py.

◆ int

sympy_gauss_jac.int

Definition at line 46 of file sympy_gauss_jac.py.

◆ parser

sympy_gauss_jac.parser = argparse.ArgumentParser(description="Compute Gauss-Jacobi quadrature.")

Definition at line 45 of file sympy_gauss_jac.py.

◆ type

sympy_gauss_jac.type

Definition at line 46 of file sympy_gauss_jac.py.