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

Comment (by rws):

 As to the message, please go ahead. The `expression.variables()` returns a
 lexically sorted list but the `function.arguments()` returns the arguments
 as they are given. This can get really confusing:
 {{{
 sage: f(x,a) = 1/(a+x^2)
 sage: f.variables()
 (a, x)
 sage: f.arguments()
 (x, a)
 sage: numerical_integral(f, 1, 2, max_points=100, params=[10])
 (0.08148091340506758, 9.046198612979459e-16)
 sage: numerical_integral(1/(a+x^2), 1, 2, max_points=100, params=[10])
 (0.00985229644301163, 1.0938246356464044e-16)
 }}}
 OTOH, giving a dictionary always involves the user more than a list. So
 maybe we should at least put a warning in the documentation about this. If
 you feel up to it, cvould you please?

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