# scipy.special.roots_hermitenorm¶

scipy.special.roots_hermitenorm(n, mu=False)[source]

Computes the sample points and weights for Gauss-Hermite quadrature. The sample points are the roots of the n-th degree Hermite polynomial, $$He_n(x)$$. These sample points and weights correctly integrate polynomials of degree $$2n - 1$$ or less over the interval $$[-\infty, \infty]$$ with weight function $$f(x) = e^{-x^2/2}$$.

Parameters
nint

mubool, optional

If True, return the sum of the weights, optional.

Returns
xndarray

Sample points

wndarray

Weights

mufloat

Sum of the weights

Notes

For small n up to 150 a modified version of the Golub-Welsch algorithm is used. Nodes are computed from the eigenvalue problem and improved by one step of a Newton iteration. The weights are computed from the well-known analytical formula.

For n larger than 150 an optimal asymptotic algorithm is used which computes nodes and weights in a numerical stable manner. The algorithm has linear runtime making computation for very large n (several thousand or more) feasible.

#### Previous topic

scipy.special.roots_hermite

#### Next topic

scipy.special.roots_gegenbauer
{"ft_lang_label":"__label__en","ft_lang_prob":0.7199021,"math_prob":0.99180263,"size":1232,"snap":"2020-34-2020-40","text_gpt3_token_len":320,"char_repetition_ratio":0.117263846,"word_repetition_ratio":0.0,"special_character_ratio":0.22077923,"punctuation_ratio":0.13488372,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9982756,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-19T15:42:44Z\",\"WARC-Record-ID\":\"<urn:uuid:ccff6ee7-ed3c-4fc9-8d52-c7d145bdb0a5>\",\"Content-Length\":\"8998\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f5fa7689-7925-4043-8aca-17b34350d074>\",\"WARC-Concurrent-To\":\"<urn:uuid:735360fb-5d9e-40fc-b3dc-fd445600a0bd>\",\"WARC-IP-Address\":\"50.17.248.72\",\"WARC-Target-URI\":\"https://docs.scipy.org/doc/scipy-1.3.3/reference/generated/scipy.special.roots_hermitenorm.html\",\"WARC-Payload-Digest\":\"sha1:FB5A2JK3ZPVP5UIUQHX5VCD4D73WE2NJ\",\"WARC-Block-Digest\":\"sha1:VOK5246OS5AN2L4JPFIO7R7KZT5RESTK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400192778.51_warc_CC-MAIN-20200919142021-20200919172021-00318.warc.gz\"}"}