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 4b89858 commit 63b3779Copy full SHA for 63b3779
1 file changed
src/Math-Tests-Polynomials/PMPolynomialTest.class.st
@@ -143,8 +143,10 @@ PMPolynomialTest >> testPolynomialIntegral [
143
PMPolynomialTest >> testPolynomialIntegralWithConstant [
144
"Code example 2.3"
145
146
- | polynomial |
147
- polynomial := (PMPolynomial coefficients: #(-3 7 2 1)) integral: 5.
+ | polynomial arbitraryConstant p |
+ arbitraryConstant := 5.
148
+ p := PMPolynomial coefficients: #( -3 7 2 1 ).
149
+ polynomial := p integral: arbitraryConstant.
150
self assert: (polynomial at: 0) equals: 5.
151
self assert: (polynomial at: 1) equals: -3.
152
self assert: (polynomial at: 2) equals: 7 / 2.
0 commit comments