Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: arf_set_str #439

Open
MacroUniverse opened this issue Oct 16, 2022 · 0 comments
Open

Feature request: arf_set_str #439

MacroUniverse opened this issue Oct 16, 2022 · 0 comments

Comments

@MacroUniverse
Copy link

Since there is a function char * arf_get_str(const arf_t x, slong prec), it will be good to also define a function with the effect of

inline int arf_set_str(arf_t res, const char * inp, slong prec)
{
    arb_t y; arb_init(y);
    if (arb_set_str(y, inp, prec))
        return 1;
    arf_set(res, &y->mid);
    return 0;
}
@MacroUniverse MacroUniverse changed the title Feature request: int arf_set_str(arf_t res, const char * inp, slong prec) Feature request: arf_set_str Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant