Skip to content

Commit

Permalink
refactor: Rename Variable: the polynomial is the integrand.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Dec 28, 2023
1 parent 63b3779 commit a3e7f96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Math-Tests-Polynomials/PMPolynomialTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a3e7f96

Please sign in to comment.