#3587: [with patch, needs work] calculus -- wrap maxima's symbolic summation
-------------------------+--------------------------------------------------
 Reporter:  was          |       Owner:  whuss     
     Type:  enhancement  |      Status:  assigned  
 Priority:  major        |   Milestone:  sage-4.0.1
Component:  calculus     |    Keywords:            
-------------------------+--------------------------------------------------

Comment(by burcin):

 Many thanks for the patch, this was long overdue. A few comments after
 reading your patch:

 Your patch replicates the way integrate/integral works perfectly. Though,
 as Mike wrote in comment:3, we should just call this `sum`. There is also
 a discussion about naming here:

 http://groups.google.com/group/sage-
 devel/browse_thread/thread/bd4eb3b613c98030

 I suggest putting a `sum()` function in `sage.misc.misc_c`, that calls
 python's `sum()` or your function based on the type/number of the
 arguments. Would you like to do this or should I?

 Here are some suggested changes:

  * rename all instances of the method to `sum` or `symbolic_sum`
  * you should import your function before the doctests in `calculus.py` to
 make sure you call the right function
  * it would be good to add a comment to #6197 pointing to the comment you
 have in `calculus.py`
  * you could add your code for converting MMA output back to Sage to a
 `_sage_()` method in `sage.interfaces.mathematica.MathematicaElement`, see
 the `MagmaElement` class in `sage.interfaces.magma` for an example,
 similarly for Maple output
  * In the last lines of the docstring for
 `sage.symbolic.expression.Expression.summation`, choosen -> chosen


 In the long term, I would like to see `integral` and `sum` constructs as
 subclasses of `sage.symbolic.function.SFunction`, instead of the current
 thin wrappers around maxima functionality. I will take a look at the
 feasibility of doing this over the weekend. I don't want to hold your
 patch back for this though.

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