Added exact method for calculating N given D and P using a numerical approach, this means that from now on
multiple solution strategies can be used for this calculation as well (earlier this calculation always used Taylor
approximation).
Fixed bug in method facultyLog for when input is 0. Since 0! = 1 and the return value is in log space, the
correct answer is 0 and not 1.
Added trivial use case for calculating N using D and P when D is 1 and P is neither 0 nor 1 (in this case
the answer is always 2).
N
givenD
andP
using a numerical approach, this means that from now on multiple solution strategies can be used for this calculation as well (earlier this calculation always used Taylor approximation).facultyLog
for when input is 0. Since 0! = 1 and the return value is in log space, the correct answer is 0 and not 1.N
usingD
andP
whenD
is 1 andP
is neither 0 nor 1 (in this case the answer is always 2).