#7742: add a compose function to sage
--------------------------------+-------------------------------------------
   Reporter:  was               |       Owner:  AlexGhitza
       Type:  defect            |      Status:  new       
   Priority:  major             |   Milestone:  sage-4.3.1
  Component:  basic arithmetic  |    Keywords:            
Work_issues:                    |      Author:            
   Upstream:  N/A               |    Reviewer:            
     Merged:                    |  
--------------------------------+-------------------------------------------

Comment(by colah):

 Replying to [comment:1 hivert]:
 > Replying to [ticket:7742 was]:
 > >     n = Integer(n)
 >
 > Converting to int should be sufficient... Or the implementation below
 should'nt be very useful :-).
 >
 > >     if n <= 0: return a
 >
 > I'd rather sage to raise a {{{ValueError}}} if {{{n < 0}}} than
 returning silently a wrong value...
 >
 > Florent

 We probably want to return an inverse function, if possible, when n<0...
 I'm also wondering if there is a generalisation of this to all real
 numbers.

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