codeplea / tinyexpr

tiny recursive descent expression parser, compiler, and evaluation engine for math expressions
https://codeplea.com/tinyexpr
zlib License
1.61k stars 245 forks source link

Nan checks for ncr and fac #82

Open juntuu opened 3 years ago

juntuu commented 3 years ago

Added nan check for ncr and fac functions. Now both will return nan, when given nan as parameter.

This should resolve #62

Also added .gitignore with the artifacts from make

invd commented 5 months ago

I can confirm that the better NAN handling resolves the slow ncr() behavior :+1: