#16671: implement harmonic number function H(n,m)
-------------------------+-------------------------------------------------
       Reporter:  rws    |        Owner:
           Type:         |       Status:  needs_review
  defect                 |    Milestone:  sage-6.6
       Priority:  major  |   Resolution:
      Component:         |    Merged in:
  symbolics              |    Reviewers:
       Keywords:         |  Work issues:
  special, log           |       Commit:
        Authors:  Ralf   |  d60311eda7cce822b74480550498da09b34b7a63
  Stephan                |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  u/rws/16671            |
   Dependencies:         |
  #17790                 |
-------------------------+-------------------------------------------------
Changes (by rws):

 * status:  needs_work => needs_review
 * work_issues:  merge fix for #17790 =>
 * milestone:  sage-6.4 => sage-6.6


Comment:

 Replying to [comment:47 jdemeyer]:
 > {{{
 > sage: harmonic_number._eval_(10, Qp(5)(1))
 > 7381/2520
 > }}}
 > but the answer should be
 > {{{
 > sage: Qp(5)(harmonic_number(10))
 > }}}
 Disagree. That should be the result of `harmonic_number._eval_(Qp(5)(10),
 1)`. Anything else than a rational as second argument makes no sense.

 I have now adapted the code so it gives back the same type as the input,
 but wrapped as `Expression`. Also, you can expect that only if it can be
 converted back, which is not the case for `H(p/q)` or `H(anything, p/q)`
 as the result is not rational.

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