From bfb982d6824a41ebff1fc5934ebee7f01df1e682 Mon Sep 17 00:00:00 2001 From: dana Date: Mon, 13 Apr 2026 11:04:58 -0500 Subject: 54318: mathfunc: add isnan() and isinf(). also document NaN + Inf --- Functions/Misc/zmathfuncdef | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions') diff --git a/Functions/Misc/zmathfuncdef b/Functions/Misc/zmathfuncdef index 5ed991f68..6b8dfe1dd 100644 --- a/Functions/Misc/zmathfuncdef +++ b/Functions/Misc/zmathfuncdef @@ -61,7 +61,7 @@ if ! zmodload -e zsh/mathfunc; then mathfuncs=(abs acos acosh asin asinh atan atanh cbrt ceil cos cosh erf erfc exp expm1 fabs float floor gamma int j0 j1 lgamma log log10 log1p logb sin sinh sqrt tan tanh y0 y1 signgam copysign fmod hypot nextafter jn yn - ldexp scalb rand48) + ldexp scalb rand48 ilogb isinf isnan log2 rint) mathfuncpat="(${(j.|.)mathfuncs})" bodysearch=$body while [[ $bodysearch = (#b)(*[^[:alnum]]|)([[:alnum:]]##)\((*) ]]; do -- cgit v1.3