File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -3306,7 +3306,26 @@ def derivative(self, *args):
3306
3306
sage: (1/(1-z)).derivative(z)
3307
3307
1 + 2*z + 3*z^2 + 4*z^3 + 5*z^4 + 6*z^5 + 7*z^6 + O(z^7)
3308
3308
3309
- TESTS::
3309
+ TESTS:
3310
+
3311
+ Check the derivative of the logarithm:
3312
+
3313
+ sage: L.<z> = LazyLaurentSeriesRing(QQ)
3314
+ sage: -log(1-z).derivative()
3315
+ 1 + z + z^2 + z^3 + z^4 + z^5 + z^6 + O(z^7)
3316
+
3317
+ Check that differentiation of 'exact' series with nonzero
3318
+ constant works::
3319
+
3320
+ sage: L.<z> = LazyLaurentSeriesRing(ZZ)
3321
+ sage: f = L([1,2], valuation=-2, constant=1)
3322
+ sage: f
3323
+ z^-2 + 2*z^-1 + 1 + z + z^2 + O(z^3)
3324
+ sage: f.derivative()
3325
+ -2*z^-3 - 2*z^-2 + 1 + 2*z + 3*z^2 + 4*z^3 + O(z^4)
3326
+
3327
+ Check that differentiation with respect to a variable other
3328
+ than the series variable works::
3310
3329
3311
3330
sage: R.<q> = QQ[]
3312
3331
sage: L.<z> = LazyLaurentSeriesRing(R)
You can’t perform that action at this time.
0 commit comments