Skip to content

Commit

Permalink
Add RootSum to CHANGES & doc formatting (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky authored Oct 30, 2024
1 parent 05e2f08 commit a39a3e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ By `@davidar <https://github.com/davidar>`_:
* ``PolyLog``
* ``PowersRepresentations``
* ``ReverseSort``
* ``RootSum``
* ``SeriesCoefficient``
* ``SquaresR``
* ``Subfactorial``
Expand Down
4 changes: 2 additions & 2 deletions mathics/builtin/numbers/calculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ class RootSum(SympyFunction):
<dl>
<dt>'RootSum[$f$, $form$]'
<dd>sums $form[x]$ for all roots of the polynomial $f[x]$.
<dd>sums $form$[$x$] for all roots of the polynomial $f$[$x$].
</dl>
>> Integrate[1/(x^5 + 11 x + 1), {x, 1, 3}]
Expand All @@ -1718,7 +1718,7 @@ class RootSum(SympyFunction):
>> RootSum[#^5 - 3 # - 7 &, Sin] //N//Chop
= 0.292188
Use Normal to expand RootSum:
Use 'Normal' to expand 'RootSum':
>> RootSum[1+#+#^2+#^3+#^4 &, Log[x + #] &]
= RootSum[1 + #1 ^ 2 + #1 ^ 3 + #1 ^ 4 + #1&, Log[x + #1]&]
>> %//Normal
Expand Down

0 comments on commit a39a3e9

Please sign in to comment.