I have difficulties understanding what RootSum object is mathematically, as it is not really well explained anywhere. It came up in a solution to a quite complicated system of differential equations in my Code. The normal "Root" is just some representation of the solution f==0 right? If I use Normal, you can turn RootSum into a function of Roots. for example in my case:

enter image description here

Left of the comma is f and the "1" on the right signifies it is the first root?

Now RootSum[f, form] depends on 2 functions, how do I have to understand this notation to get to a Number as an output? Especially what "form[x]" means.

  • 2
    $\begingroup$ Have you read the document of RootSum, especially the examples under Scope section?: reference.wolfram.com/language/ref/RootSum.html $\endgroup$
    – xzczd
    Commented May 16 at 9:22
  • $\begingroup$ To be more specific, I mean the 6 examples following the line "Sums over roots of polynomials with inexact number coefficients". $\endgroup$
    – xzczd
    Commented May 16 at 12:23

1 Answer 1

RootSum[#^2 - 1 &, f] // FullSimplify
(*f[-1] + f[1]*)

RootSum[#^3 - 1 &, Sin] // ToRadicals
(*Sin[1] - Sin[(-1)^(1/3)] + Sin[(-1)^(2/3)]*)

You can see that RootSum[f, form] returns form[x1]+form[x2]+... where x1,x2,... are the root of f[x]==0

  • 2
    $\begingroup$ Better use Normal[] to convert RootSum to Root objects. $\endgroup$
    – Acus
    Commented May 16 at 10:40
  • $\begingroup$ Thank you, this clarified it. I tried FullSimplify but f is too complicated, so nothing happens. So this did not become clear to me so far. $\endgroup$
    – phein1
    Commented May 16 at 12:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.