diff options
| author | Ethan Werner <mail@ethanwerner.com> | 2026-08-09 15:02:21 +0400 |
|---|---|---|
| committer | Ethan Werner <mail@ethanwerner.com> | 2026-08-09 15:02:21 +0400 |
| commit | 3d92926a902017e7cf1f5738e99ff62da596ce12 (patch) | |
| tree | 2b55422c26a48759d56fa91f06df24449e9dfa88 /lib/polynomial.c | |
| parent | 07e18043145f3d91c8ea7ec3ad41b3c905585277 (diff) | |
refactormain
Diffstat (limited to 'lib/polynomial.c')
| -rw-r--r-- | lib/polynomial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/polynomial.c b/lib/polynomial.c index 2914fe6..82d8fba 100644 --- a/lib/polynomial.c +++ b/lib/polynomial.c @@ -33,7 +33,7 @@ int ts_polynomial( { fp_t base = x[0][i]; fp_t exponent = x[1][i]; - if( base < 0.0 && exponent != (fp_t)(long)exponent ) { y[0][i] = 0; continue; } + if( base < 0.0 && exponent != (fp_t)(long)exponent ) { y[0][i] = NAN; continue; } y[0][i] = pow(base, exponent); } return 0; |