scipy_gauss_jac Namespace Reference

Functions

def main (n, alpha, beta)
 

Variables

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

Function Documentation

◆ main()

def scipy_gauss_jac.main (   n,
  alpha,
  beta 
)

Definition at line 35 of file scipy_gauss_jac.py.

35 def main(n, alpha, beta):
36  roots, weights = roots_jacobi(n=n, alpha=alpha, beta=beta)
37  for idx, root in enumerate(roots):
38  sign = " " if root >= 0 else ""
39  root_str = f"{root:23.17E}"
40  weight_str = f"{weights[idx]: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

Variable Documentation

◆ args

scipy_gauss_jac.args = parser.parse_args()

Definition at line 50 of file scipy_gauss_jac.py.

◆ default

scipy_gauss_jac.default

Definition at line 46 of file scipy_gauss_jac.py.

◆ float

scipy_gauss_jac.float

Definition at line 47 of file scipy_gauss_jac.py.

◆ help

scipy_gauss_jac.help

Definition at line 46 of file scipy_gauss_jac.py.

◆ int

scipy_gauss_jac.int

Definition at line 46 of file scipy_gauss_jac.py.

◆ parser

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

Definition at line 45 of file scipy_gauss_jac.py.

◆ type

scipy_gauss_jac.type

Definition at line 46 of file scipy_gauss_jac.py.