commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amey Jadiye (JIRA)" <>
Subject [jira] [Commented] (NUMBERS-38) No unit tests for "LanczosApproximation" class
Date Sun, 04 Jun 2017 11:42:04 GMT


Amey Jadiye commented on NUMBERS-38:

Hi [~erans]

My initial thoughts was the formula given in code itself is the marker to test and is perfectly
written (as present in apache's project), your comment forced me to verify everything from
roots which ended up me reading lots of papers and watching youtube  on Gamma functions and
approximations _(including great interview of [Cornelius Lanczos|])_
and finally I found our Code is Buggy generating  wrong values for inputs :(

There are the some references I cross verified the test input/outputs _(both produce same
result and our code produce something else)_

- []
- [] (_this is python but generates same
I saw coefficient are take from (which are standard anyway), no matter which set you take
results are approx same.
- []

For more cross verification there is online gamma calculator which also gives same result.
- []

All that I said, our code need to be fixed and it should generate {{gamma(z)=(n-1)!}}  (n
minus one factorial) values.

let me know your thoughts.

> No unit tests for "LanczosApproximation" class
> ----------------------------------------------
>                 Key: NUMBERS-38
>                 URL:
>             Project: Commons Numbers
>          Issue Type: Test
>            Reporter: Gilles
>              Labels: unit-test
>             Fix For: 1.0
> The computation of the {{LanczosApproximation}} (package {{o.a.c.numbers.gamma}} in module
{{commons-numbers-gamma}}) function is not checked by unit tests.

This message was sent by Atlassian JIRA

View raw message