This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / polynomial / hermite_e / hermesub

function

numpy.polynomial.hermite_e:hermesub

source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/hermite_e.py :352

Signature

def   hermesub ( c1 c2 )

Summary

Subtract one Hermite series from another.

Extended Summary

Returns the difference of two Hermite series c1 - c2. The sequences of coefficients are from lowest order term to highest, i.e., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2.

Parameters

c1, c2 : array_like

1-D arrays of Hermite series coefficients ordered from low to high.

Returns

out : ndarray

Of Hermite series coefficients representing their difference.

Notes

Unlike multiplication, division, etc., the difference of two Hermite series is a Hermite series (without having to "reproject" the result onto the basis set) so subtraction, just like that of "standard" polynomials, is simply "component-wise."

Examples

from numpy.polynomial.hermite_e import hermesub
hermesub([1, 2, 3, 4], [1, 2, 3])

See also

hermeadd
hermediv
hermemul
hermemulx
hermepow

Aliases

  • numpy.polynomial.HermiteE._sub
  • numpy.polynomial.hermite_e.hermesub