We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25ba113 commit fc66d1dCopy full SHA for fc66d1d
src/Math-Tests-Polynomials/PMPolynomialTest.class.st
@@ -256,12 +256,13 @@ PMPolynomialTest >> testPolynomialRootsForConstant [
256
257
{ #category : #'iterative algorithms' }
258
PMPolynomialTest >> testPolynomialRootsForLinear [
259
+
260
| polynomial roots |
- "Here, compute the roots of the quadratic (2x + 1)"
261
- polynomial := PMPolynomial coefficients: #(1 2).
262
- roots := polynomial roots .
+ "Here, compute the roots of the linear (2x + 1)"
+ polynomial := PMPolynomial coefficients: #( 1 2 ).
263
+ roots := polynomial roots.
264
self assert: roots size equals: 1.
- self assert: (roots at: 1) closeTo: -0.5 .
265
+ self assert: (roots at: 1) closeTo: -0.5
266
]
267
268
{ #category : #'function evaluation' }
0 commit comments