Open saraedum opened 2 years ago
Neither arb_get_str
nor arb_set_str
says in their documentation that they preserve the radius. It only states that the old interval is contained in the new interval.
@albinahlback Thanks, I am aware of that. I am not saying that the implementation breaks the documentation.
Then what is your issue? You asked if arb_set_str
preserves the radius, for which I gave an answer.
My question was: Shouldn't arb_set_str()
try to preserve the radius here?
Note that this is somewhat related to #391. In #391 arb_get_str
introduces an error, here arb_set_str
introduces an error.
I wonder if both methods could be more careful when it's possible not to introduce any error.
Consider the following C program.
When run (with Arb 2.22.1 from conda-forge) it prints:
I understand that
arb_get_str()
can introduce imprecision and I also understand that I should probably usearb_dump_str
to serialize anarb_t
; but shouldn'tarb_set_str()
preserve the radius?