#17066: always simplify hypergeometric() when it's a polynomial
-------------------------------------+-------------------------------------
       Reporter:  rws                |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.4
      Component:  symbolics          |   Resolution:
       Keywords:  special,           |    Merged in:
  functions, pFq, evaluation         |    Reviewers:
        Authors:  Ralf Stephan       |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  55daf81080f46c54429e629b65e8049acfdb6d00
  u/rws/work_around_mpmath_problem_with_hypergeometric___zeroes|     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by mmezzarobba):

 Expanding hypergeometric functions in polynomial closed form before
 evaluating them can lead to numerical cancellation. Compare for example
 {{{
 sage: hypergeometric([1,-100],[3], 0.7)
 0.0278923450568346
 sage: hypergeometric([1,-100],[3], Reals(1000)(0.7)).n()
 0.0278923450568346
 sage:
 
sage.functions.hypergeometric.closed_form(hypergeometric([1,-100],[3],x)).subs(x=0.7)
 -376.859920391941
 }}}
 Won't that be a problem with this ticket? (I didn't read beyond the
 ticket's description, so please ignore my comment if it is beside the
 point.)

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