Learn R Programming

emreliability (version 1.0.0)

normal_quadra: Gaussian Quadrature Points and Weights

Description

Generate Gaussian quadrature points and corresponding normalized weights based on the standard normal density over a symmetric interval.

Usage

normal_quadra(n, mm)

Value

A list with:

nodes

Quadrature nodes from -mm to +mm.

weights

Normalized weights proportional to the standard normal density at each node.

Arguments

n

Integer. Number of quadrature points (must be >= 2).

mm

Numeric. Positive value giving the maximum absolute value of the quadrature nodes (range will be from -mm to +mm).

Examples

Run this code
normal_quadra(41, 5)

Run the code above in your browser using DataLab