#17678: special values of Bessel functions
-------------------------------------+-------------------------------------
       Reporter:  rws                |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-6.5
      Component:  symbolics          |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Ralf Stephan       |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/rws/special_values_of_bessel_functions|  
191ca289d3c26813e0244251a983a62f2057347a
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by kcrisman):

 I like the general idea of this ticket!  What happens in the following
 scenario
 {{{
 +        if x == 0:
 +            if n == 0:
 +                return ZZ(1)
 }}}
 for
 {{{
 sage: bessel_J(0.0, 0.0)
 1
 }}}
 should it instead return `1.0`? I feel like we have a lot of code in Sage
 doing type conversions of this kind smartly - sadly, I was not the one
 gifted to write it.  Maybe something like saving the parents of the input
 and if one is inexact then so is the output, something along those
 lines... we had some issues with `sin(0)` versus `sin(0.0)` even, I think;
 currently
 {{{
 sage: sin(0)
 0
 sage: sin(0.0)
 0.000000000000000
 sage: sin(float(0))
 0.0
 sage: sin(RDF(0))
 0.0
 sage: sin(complex(0))
 0j
 }}}

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