#17507: minor error with integral.n()
----------------------------+--------------------------
       Reporter:  rws       |        Owner:
           Type:  defect    |       Status:  needs_work
       Priority:  minor     |    Milestone:  sage-6.5
      Component:  calculus  |   Resolution:
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+--------------------------
Changes (by rws):

 * status:  positive_review => needs_work
 * priority:  major => minor
 * milestone:  sage-duplicate/invalid/wontfix => sage-6.5


Old description:

> There appear to be two problems:
> {{{
> sage: from sage.symbolic.integration.integral import definite_integral,
> indefinite_integral
> sage: definite_integral(x*y,x,0,1,hold=True)
> integrate(x*y, x, 0, 1)
> sage: _.n()
> ValueError: Integrand has wrong number of parameters
>
> sage: integrate(x*y,(x,0,1))
> 1/2*y
> sage: definite_integral(x*y,(x,0,1),hold=True)
> TypeError: Symbolic function integrate takes exactly 4 arguments (2
> given)
> }}}

New description:

 {{{
 sage: from sage.symbolic.integration.integral import definite_integral,
 indefinite_integral
 sage: definite_integral(x*y,x,0,1,hold=True)
 integrate(x*y, x, 0, 1)
 sage: _.n()
 ValueError: Integrand has wrong number of parameters
 }}}
 The commands are of course nonsense but the error is really misleading.

--

Comment:

 To be more exact, this ticket is just about the `n()`

--
Ticket URL: <http://trac.sagemath.org/ticket/17507#comment:3>
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/d/optout.

Reply via email to