Hello.
  I am trying to compute sums with symbolic values as limits:
    n = sympy.var("n")
    SYMM = sympy.Symbol("M")
    SYMN = sympy.Symbol("N")
    SYMi = sympy.Symbol("i")

    print sympy.Sum(SYMi, (SYMi, 0, SYMN - 1)).evalf()
  This prints however Sum(i, (i, 0, N - 1)), instead of N*(N-1)/2
Could you please tell me if I can compute the final result as desired. I got inspired from other code like sympy.Sum(1/n**2, (n, 1, sympy.oo)).evalf() or sympy.nsimplify(sympy.Sum(1/n**2, (n, 1, sympy.oo)), [sympy.pi]), but I couldn't figure out how to achieve my goal.

  With best regards,
    Alex Susu

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to