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 63b3779 commit a3e7f96Copy full SHA for a3e7f96
1 file changed
src/Math-Tests-Polynomials/PMPolynomialTest.class.st
@@ -143,10 +143,10 @@ PMPolynomialTest >> testPolynomialIntegral [
143
PMPolynomialTest >> testPolynomialIntegralWithConstant [
144
"Code example 2.3"
145
146
- | polynomial arbitraryConstant p |
+ | polynomial arbitraryConstant integrand |
147
arbitraryConstant := 5.
148
- p := PMPolynomial coefficients: #( -3 7 2 1 ).
149
- polynomial := p integral: arbitraryConstant.
+ integrand := PMPolynomial coefficients: #( -3 7 2 1 ).
+ polynomial := integrand 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