Skip to content

Commit a39a3e9

Browse files
authored
1 parent 05e2f08 commit a39a3e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ By `@davidar <https://github.com/davidar>`_:
3030
* ``PolyLog``
3131
* ``PowersRepresentations``
3232
* ``ReverseSort``
33+
* ``RootSum``
3334
* ``SeriesCoefficient``
3435
* ``SquaresR``
3536
* ``Subfactorial``

mathics/builtin/numbers/calculus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ class RootSum(SympyFunction):
17041704
17051705
<dl>
17061706
<dt>'RootSum[$f$, $form$]'
1707-
<dd>sums $form[x]$ for all roots of the polynomial $f[x]$.
1707+
<dd>sums $form$[$x$] for all roots of the polynomial $f$[$x$].
17081708
</dl>
17091709
17101710
>> Integrate[1/(x^5 + 11 x + 1), {x, 1, 3}]
@@ -1718,7 +1718,7 @@ class RootSum(SympyFunction):
17181718
>> RootSum[#^5 - 3 # - 7 &, Sin] //N//Chop
17191719
= 0.292188
17201720
1721-
Use Normal to expand RootSum:
1721+
Use 'Normal' to expand 'RootSum':
17221722
>> RootSum[1+#+#^2+#^3+#^4 &, Log[x + #] &]
17231723
= RootSum[1 + #1 ^ 2 + #1 ^ 3 + #1 ^ 4 + #1&, Log[x + #1]&]
17241724
>> %//Normal

0 commit comments

Comments
 (0)