Which programming language or a library can process Infinite Series?

后端 未结 13 1409
情书的邮戳
情书的邮戳 2021-02-03 23:46

Which programming language or a library is able to process infinite series (like geometric or harmonic)? It perhaps must have a database of some well-known series and automatica

13条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-04 00:07

    Maxima can calculate some infinite sums, but in this particular case it doesn't seem to find the answer :-s

    (%i1) sum((-1)^k/(2*k), k, 1, inf), simpsum;
                                     inf
                                     ====       k
                                     \     (- 1)
                                      >    ------
                                     /       k
                                     ====
                                     k = 1
    (%o1)                            ------------
                                          2
    

    but for example, those work:

    (%i2) sum(1/(k^2), k, 1, inf), simpsum;
                                            2
                                         %pi
    (%o2)                                ----
                                          6
    
    (%i3) sum((1/2^k), k, 1, inf), simpsum;
    (%o3)                                  1
    

提交回复
热议问题