k: an integer or fmpz vector listing indices of branches of the function. 0 indicates the principal branch.
flags: for arb_lambertw:
an integer vector indicating which of the index 0 and index -1 branches is computed (0 means index 0, 1 means index -1).
for acb_lambertw:
an integer vector indicating how branch cuts are defined. Nonzero values are nonstandard; see the first reference.
prec: a numeric or slong vector indicating the desired precision as a number of bits.
Returns
An arb or acb vector storing function values with error bounds. Its length is the maximum of the lengths of the arguments or zero (zero if any argument has length zero). The arguments are recycled as necessary.