(p, x, prec)
return p1
helper function for ``rs_exp``
helper function for ``rs_exp``
helper function for rs_exp
def _exp1(p, x, prec):
    """
    helper function for ``rs_exp``
    """
    ring = p.ring
    p1 = ring(1)
    for precx in _giant_steps(prec):
        pt = p - rs_log(p1, x, precx)
        tmp = rs_mul(pt, p1, x, precx)
        p1 += tmp
    return p1
def _exp1 ( p , x , prec ) : ring = p . ring p1 = ring ( 1 ) for precx in _giant_steps ( prec ) : pt = p - rs_log ( p1 , x , precx ) tmp = rs_mul ( pt , p1 , x , precx ) p1 += tmp return p1