Skip to content

Commit 32ebd8a

Browse files
refactor: Inline Method, as it has no clients.
1 parent ea7419e commit 32ebd8a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Math-Polynomials/PMPolynomial.class.st

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,6 @@ PMPolynomial >> reciprocal [
239239
^ (PMPolynomial coefficients: #(1)) / self
240240
]
241241

242-
{ #category : #information }
243-
PMPolynomial >> rootFindingAlgorithmWith: precision [
244-
^ PMNewtonZeroFinder rootFindingAlgorithmWith: precision
245-
]
246-
247242
{ #category : #information }
248243
PMPolynomial >> roots [
249244

@@ -254,7 +249,7 @@ PMPolynomial >> roots [
254249
PMPolynomial >> roots: aNumber [
255250

256251
| pol roots x rootFinder |
257-
rootFinder := self rootFindingAlgorithmWith: aNumber.
252+
rootFinder := PMNewtonZeroFinder rootFindingAlgorithmWith: aNumber.
258253
pol := self class coefficients:
259254
(coefficients reverse collect: [ :each | each asFloat ]).
260255
roots := OrderedCollection new: self degree.

0 commit comments

Comments
 (0)