Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac #18098 little more doc on QQ[[w]] in constructions.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Apr 13, 2015
1 parent 89f5b64 commit 0edaa39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/doc/en/constructions/calculus.rst
Expand Up @@ -121,11 +121,15 @@ Or you can use the formal power series rings for fast computation.
These are missing symbolic functions, on the other hand::

sage: R.<w> = QQ[[]]
sage: ps = w + 17/2*w^2 + 15/4*w^4 + O(w^6)
sage: ps = w + 17/2*w^2 + 15/4*w^4 + O(w^6); ps
w + 17/2*w^2 + 15/4*w^4 + O(w^6)
sage: ps.exp()
1 + w + 9*w^2 + 26/3*w^3 + 265/6*w^4 + 413/10*w^5 + O(w^6)
sage: (1+ps).log()
w + 8*w^2 - 49/6*w^3 - 193/8*w^4 + 301/5*w^5 + O(w^6)
sage: (ps^1000).coefficients()
[1, 8500, 36088875, 102047312625, 1729600092867375/8]


.. index::
pair: calculus; integration

Expand Down

0 comments on commit 0edaa39

Please sign in to comment.