You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I mean by "domain" is actually a math function domain. Should it return NaN for positive non-integer inputs? Or should it be defined in terms of the Gamma function (plus one)? If so, should it return NaN for negative args? or should it use the "raw" Gamma function definition where it returns "weird" values?
There are many conflicting definitions for negative inputs, so I guess the best choice is to return NaN.
About positive non-ints, I think it should definitely use Gamma. This is because interpolating the factorial function accurately and efficiently is very hard for most devs (including me). I know 1 person isn't enough evidence to assume most people have problems doing the same thing, but I'm sure if we do a survey we would get similar results.
MS calculator, Desmos, and WolframAlpha, all use an interpolated factorial, and (AFAIK) they all use Gamma internally. Again, these 3 pieces of software aren't enough justification to extend the domain of the factorial. Extending the factorial "just because some people do it" is an ad-populum fallacy. But we should be aware that the extended definition exists and try to reach a consensus if the factorial is actually added
The text was updated successfully, but these errors were encountered:
What I mean by "domain" is actually a math function domain. Should it return
NaN
for positive non-integer inputs? Or should it be defined in terms of the Gamma function (plus one)? If so, should it returnNaN
for negative args? or should it use the "raw" Gamma function definition where it returns "weird" values?There are many conflicting definitions for negative inputs, so I guess the best choice is to return
NaN
.About positive non-ints, I think it should definitely use Gamma. This is because interpolating the factorial function accurately and efficiently is very hard for most devs (including me). I know 1 person isn't enough evidence to assume most people have problems doing the same thing, but I'm sure if we do a survey we would get similar results.
MS calculator, Desmos, and WolframAlpha, all use an interpolated factorial, and (AFAIK) they all use Gamma internally. Again, these 3 pieces of software aren't enough justification to extend the domain of the factorial. Extending the factorial "just because some people do it" is an ad-populum fallacy. But we should be aware that the extended definition exists and try to reach a consensus if the factorial is actually added
The text was updated successfully, but these errors were encountered: