Skip to content

implement the agm(x,y) function #16202

@rwst

Description

@rwst

https://en.wikipedia.org/wiki/Arithmetic-geometric_mean

Pari has a numeric implementation:

? 1/agm(1,sqrt(2))
%1 = 0.83462684167407318628142973279904680900

but Wikipedia provides a closed form integral expression, and if we had the "complete elliptic integral of the first kind" this would be even simpler.

Numerically there is sage.rings.real_mpfr.RealNumber.

CC: @mforets

Component: calculus

Issue created by migration from https://trac.sagemath.org/ticket/16202

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions