From a3e7f96d6dbeeaa992ff8976aab0a19841973945 Mon Sep 17 00:00:00 2001 From: hemalvarambhia Date: Thu, 28 Dec 2023 09:40:04 +0000 Subject: [PATCH] refactor: Rename Variable: the polynomial is the integrand. --- src/Math-Tests-Polynomials/PMPolynomialTest.class.st | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Math-Tests-Polynomials/PMPolynomialTest.class.st b/src/Math-Tests-Polynomials/PMPolynomialTest.class.st index b631408b..f1e9b999 100644 --- a/src/Math-Tests-Polynomials/PMPolynomialTest.class.st +++ b/src/Math-Tests-Polynomials/PMPolynomialTest.class.st @@ -143,10 +143,10 @@ PMPolynomialTest >> testPolynomialIntegral [ PMPolynomialTest >> testPolynomialIntegralWithConstant [ "Code example 2.3" - | polynomial arbitraryConstant p | + | polynomial arbitraryConstant integrand | arbitraryConstant := 5. - p := PMPolynomial coefficients: #( -3 7 2 1 ). - polynomial := p integral: arbitraryConstant. + integrand := PMPolynomial coefficients: #( -3 7 2 1 ). + polynomial := integrand integral: arbitraryConstant. self assert: (polynomial at: 0) equals: 5. self assert: (polynomial at: 1) equals: -3. self assert: (polynomial at: 2) equals: 7 / 2.