#10682: sum fails with lower bound != 0 or 1
-------------------------+--------------------------------------------------
Reporter: fmaltey | Owner: burcin
Type: defect | Status: needs_info
Priority: critical | Milestone: sage-5.0
Component: symbolics | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-------------------------+--------------------------------------------------
Changes (by dimpase):
* status: new => needs_info
Comment:
Replying to [comment:4 nbruin]:
> Possibly the following ticket is relevant:
>
>
[http://sourceforge.net/tracker/index.php?func=detail&aid=2919296&group_id=4933&atid=104933
maxima: binomial sums - ID: 2919296]
>
> If so, it might be fixed. I don't have access to maxima 5.26 to test.
It is fixed. (What's a big deal of having access to maxima 5.26? It
compiles with ECL supplied with Sage 4.8):
{{{
$ ./maxima-local
;;; Loading #P"/usr/local/src/sage/sage-4.8.alpha4/local/lib/ecl-11.1.1
/sb-bsd-sockets.fas"
;;; Loading
#P"/usr/local/src/sage/sage-4.8.alpha4/local/lib/ecl-11.1.1/sockets.fas"
;;; Loading
#P"/usr/local/src/sage/sage-4.8.alpha4/local/lib/ecl-11.1.1/defsystem.fas"
;;; Loading
#P"/usr/local/src/sage/sage-4.8.alpha4/local/lib/ecl-11.1.1/cmp.fas"
Maxima 5.26.0_41_gbc6210e http://maxima.sourceforge.net
using Lisp ECL 11.1.1
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) load(simplify_sum);
(%o1) /tmp/maxima/share/contrib/solve_rec/simplify_sum.mac
(%i2) simplify_sum(sum(binomial(n,k)*k^2,k,2,n));
2 n
(n + n) 2 - 4 n
(%o2) -----------------
4
(%i3)
}}}
Thus, we need to update maxima spkg to 5.26.
By the way, I never understood why sum() is hardcoded this way in Sage.
Sometimes I'd rather use Python's sum(), but I don't know how to do this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10682#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en.