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 ecb00fc commit a286790Copy full SHA for a286790
src/Math-Tests-Polynomials/PMPolynomialTest.class.st
@@ -126,6 +126,11 @@ PMPolynomialTest >> testPolynomialHash [
126
{ #category : #'testing - algebra' }
127
PMPolynomialTest >> testPolynomialIntegral [
128
"Code example 2.3"
129
+ "
130
+ Given p(x) = x^3 + 2x^2 + 7x - 3
131
+ then the integral is I(x) = 1/4 x^3 + 2/3 x^3 + 7/2 x^2 - 3x + C, where C is an arbitary
132
+ constant.
133
134
135
| polynomial expectedCoefficients expected |
136
polynomial := (PMPolynomial coefficients: #( -3 7 2 1 )) integral.
0 commit comments