#7763: make nintegrate/nintegral top-level functions
-----------------------------------+----------------------------------------
   Reporter:  jason                |       Owner:  burcin    
       Type:  enhancement          |      Status:  needs_work
   Priority:  major                |   Milestone:  sage-4.6.1
  Component:  calculus             |    Keywords:  beginner  
     Author:  Gagan Sekhon         |    Upstream:  N/A       
   Reviewer:  Karl-Dieter Crisman  |      Merged:            
Work_issues:                       |  
-----------------------------------+----------------------------------------
Changes (by kcrisman):

 * cc: jason, mhampton (added)


Comment:

 Maybe the best thing to do would be to have ONE top level function for
 numerical integration (`numerical_integral`), of which `nintegrate` and
 `nintegral` would be aliases.   Then one would have to really at this time
 change the syntax of `numerical_integral` so that it accepts the same
 syntax as integration in general does; you'll notice that currently it
 does not accept a variable, only the endpoints:
 {{{
             if hasattr(func, 'arguments'):
                 vars = func.arguments()
             else:
                 vars = func.variables()
 }}}
 so that it guesses what the correct variable is.   It also makes it really
 hard to do numerical integration on the fly with it, because you can't do
 [http://ask.sagemath.org/question/95/numerical-integration-in-a-function
 this] very easily.

 In that case, it would be easy to have several different algorithms. I
 don't know which would be better; in some sense, it would be best to
 always first see if we get an exact answer from Maxima, and if not, then
 do a numerical integral.  Or should it always do a straight-up numerical
 integral (whether from GSL, Maxima, Gi/Pynac...)?

 As you can see, even trying to solve pretty 'easy' tickets can open a can
 of worms! Keep up the effort, though, it is much appreciated.

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

Reply via email to