MCPcopy
hub / github.com/numpy/numpy / roots

Method roots

numpy/lib/_polynomial_impl.py:1231–1233  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1229
1230 @property
1231 def roots(self):
1232 """ The roots of the polynomial, where self(x) == 0 """
1233 return roots(self._coeffs)
1234
1235 # our internal _coeffs property need to be backed by __dict__['coeffs'] for
1236 # scipy to work correctly.

Callers 3

test_rootsMethod · 0.45
test_roots_dtypeMethod · 0.45

Calls 1

rootsFunction · 0.85

Tested by 2

test_rootsMethod · 0.36
test_roots_dtypeMethod · 0.36