Skip to content

Commit 6f02880

Browse files
test: added a comment describing the example the way a mathematician would understand it.
1 parent c76f8f9 commit 6f02880

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Math-Tests-Polynomials/PMPolynomialTest.class.st

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ PMPolynomialTest >> testPolynomialAdditionIsCommutative [
3939
{ #category : #'testing - algebra' }
4040
PMPolynomialTest >> testPolynomialDerivative [
4141
"Code example 2.3"
42+
"
43+
p(x) = x^3 + 2x^2 + 7x - 3, therefore:
44+
p'(x) = 3x^2 + 4x + 7
45+
"
4246

4347
| p derivative expectedDerivative |
4448
p := PMPolynomial coefficients: #( -3 7 2 1 ).

0 commit comments

Comments
 (0)