#9634: binomial does not accept variable when only in the lower argument
-------------------------+-------------------------------------------------
Reporter: | Owner: burcin
Henryk.Trappmann | Status: needs_work
Type: | Milestone: sage-6.2
defect | Resolution:
Priority: major | Merged in:
Component: | Reviewers: Ralf Stephan
symbolics | Work issues:
Keywords: | Commit:
Authors: | 0b0e75ecb4eb41b505d0557af22059051513f946
Burcin Erocal | Stopgaps:
Report Upstream: N/A |
Branch: |
u/rws/ticket/9634 |
Dependencies: |
-------------------------+-------------------------------------------------
Old description:
> {{{
> sage: var('k')
> k
> sage: binomial(x,3)
> 1/6*(x - 2)*(x - 1)*x
> sage: binomial(3,k)
> ---------------------------------------------------------------------------
> TypeError: Either m or x-m must be an integer
> }}}
>
> From kcrisman:
> Is this a bug? I would say yes, because
> {{{
> sage: binomial(x,k)
> binomial(x, k)
> }}}
> works, but maybe we want to have it be a specific integer if the top
> number is given? Any input?
>
> Apply [attachment:trac_9634-symbolic_binomial.take2.patch]
New description:
{{{
sage: var('k')
k
sage: binomial(x,3)
1/6*(x - 2)*(x - 1)*x
sage: binomial(3,k)
---------------------------------------------------------------------------
TypeError: Either m or x-m must be an integer
}}}
This is a bug since
{{{
sage: binomial(x,k)
binomial(x, k)
}}}
works.
--
Comment (by jdemeyer):
Replying to [comment:17 rws]:
> Evidently he should have submitted the import cleanup separately.
Indeed.
--
Ticket URL: <http://trac.sagemath.org/ticket/9634#comment:18>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.