ec) as a big integer.

    This is done using Chudnovsky's series (see comments in
    libelefun.py for details).
    g