Menu ▾ ▴

#5915 Fix elliptic_pi where Carlson's Rj is not valid

None
closed
5
2 days ago
4 days ago
Raymond Toy
No

elliptic_pi returns incorrect values for some complex values compared to what mpmath and Wolfram Alpha returns. This is primarily due to using Carlson's Rj function to evaluate eliptic_pi. The problem is the duplication formula for Rj is only valid over certain ranges of the parameters.

Related

Bugs: #5904

Discussion

  • Raymond Toy

    Raymond Toy - 2 days ago
    • status: open --> closed
     
  • Raymond Toy

    Raymond Toy - 2 days ago

    Fixed in [c79180]. Basically quadrature is used along with a shifted Rj function to cover these areas. This is what mpmath does.

     

    Related

    Commit: [c79180]


Log in to post a comment.