Ticket #3006 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

[with patch, positive review] missing elliptic integrals in special.py

Reported by: wdj Owned by: was
Priority: major Milestone: sage-3.0.1
Component: calculus Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

The following problem was reported by Dustin Vaselaar to sage-support:

Hello, I am looking to use a complete elliptic integral of the first kind in sage, however I'm not sure if this has been implemented. The link http://www.sagemath.org/doc/html/ref/module-sage.functions.special.html mentions a function "elliptic_kc", but it doesn't seem to be implemented in sage version 3.0, judging from the result of this command:

sage: elliptic_kc?
Object `elliptic_kc` not found.

Any insights on using a a complete elliptic integral of the first kind in sage?

Attachments

9607.patch Download (4.7 KB) - added by wdj 5 years ago.

Change History

comment:1 Changed 5 years ago by wdj

Clearly this is a problem with "documentation" but I filed it under "calculus" since that seemed closer. It is a matter of adding a wrapper to Maxima's function elliptic_kc.

sage: RR(maxima.eval("elliptic_kc (0.5)"))
1.85407467730137

I'll submit a patch soon.

Changed 5 years ago by wdj

comment:2 Changed 5 years ago by wdj

Thinking about this problem more, I think it is my fault. In any case, a patch is attached. It is based on 3.0 and passes sage -t but my (old) machine froze (as it very often does) during the sage -testall. No errors were reported before the freeze.

comment:3 Changed 5 years ago by AlexGhitza

  • Summary changed from missing elliptic integrals in special.py to [with patch, positive review] missing elliptic integrals in special.py

Looks good.

comment:4 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed

Merged in Sage 3.0.1.alpha0

Note: See TracTickets for help on using tickets.