mirror of
https://github.com/vale981/arb
synced 2025-03-05 17:31:38 -05:00
don't throw an exception for negative numbers in fmprb_log
This commit is contained in:
parent
75055830c4
commit
7a310917d7
1 changed files with 3 additions and 2 deletions
|
@ -32,8 +32,9 @@ fmprb_log(fmprb_t z, const fmprb_t x, long prec)
|
|||
|
||||
if (fmprb_contains_zero(x) || fmpr_sgn(fmprb_midref(x)) < 0)
|
||||
{
|
||||
printf("log: interval contains zero or negative numbers\n");
|
||||
abort();
|
||||
fmpr_nan(fmprb_midref(z));
|
||||
fmpr_pos_inf(fmprb_radref(z));
|
||||
return;
|
||||
}
|
||||
|
||||
if (fmprb_is_exact(x))
|
||||
|
|
Loading…
Add table
Reference in a new issue