Ticket #1502 (closed defect: fixed)
[with patch, with positive review] calculus -- bug in argument ordering for formal functions
| Reported by: | was | Owned by: | mhansen |
|---|---|---|---|
| Priority: | major | Milestone: | sage-2.9 |
| Component: | calculus | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
This is wrong:
sage: f = function('Gamma', var('z'), var('w')); f
Gamma(z, w)
sage: f(2)
Gamma(z, 2)
sage: f(2,5)
Gamma(5, 2)
It should be
sage: f = function('Gamma', var('z'), var('w')); f
Gamma(z, w)
sage: f(2)
Gamma(2, w)
sage: f(2,5)
Gamma(2, 5)
Note that this works:
sage: f(z,w) = function('Gamma'); f
(z, w) |--> Gamma(z, w)
sage: f(2)
Gamma(2, w)
sage: f(2,5)
Gamma(2, 5)
Attachments
Change History
comment:1 Changed 6 years ago by mhansen
- Owner changed from was to mhansen
- Status changed from new to assigned
- Summary changed from calculus -- bug in argument ordering for formal functions to [with patch] calculus -- bug in argument ordering for formal functions
- Milestone changed from sage-2.10 to sage-2.9
Apply after #553 .
Note: See
TracTickets for help on using
tickets.

