MCPcopy Create free account
hub / github.com/numpy/numpy / roots

Method roots

numpy/lib/polynomial.py:1209–1211  ·  view source on GitHub ↗

The roots of the polynomial, where self(x) == 0

(self)

Source from the content-addressed store, hash-verified

1207
1208 @property
1209 def roots(self):
1210 """ The roots of the polynomial, where self(x) == 0 """
1211 return roots(self._coeffs)
1212
1213 # our internal _coeffs property need to be backed by __dict__['coeffs'] for
1214 # scipy to work correctly.

Callers 2

test_rootsMethod · 0.45

Calls 1

rootsFunction · 0.85

Tested by 1

test_rootsMethod · 0.36