Skip to content

Commit 218a2e5

Browse files
refactor: clarified the name of the method.
1 parent 32ebd8a commit 218a2e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Math-Numerical/PMNewtonZeroFinder.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ PMNewtonZeroFinder class >> function: aBlock1 derivative: aBlock2 [
4040
]
4141

4242
{ #category : #information }
43-
PMNewtonZeroFinder class >> rootFindingAlgorithmWith: precision [
43+
PMNewtonZeroFinder class >> with: precision [
4444

4545
| rootFinder |
4646
rootFinder := PMNewtonZeroFinder new.

src/Math-Polynomials/PMPolynomial.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ PMPolynomial >> roots [
249249
PMPolynomial >> roots: aNumber [
250250

251251
| pol roots x rootFinder |
252-
rootFinder := PMNewtonZeroFinder rootFindingAlgorithmWith: aNumber.
252+
rootFinder := PMNewtonZeroFinder with: aNumber.
253253
pol := self class coefficients:
254254
(coefficients reverse collect: [ :each | each asFloat ]).
255255
roots := OrderedCollection new: self degree.

0 commit comments

Comments
 (0)