3 ms·
Great work! However, an additional testing section would be nice (right below the implementation section). That section should provide two or three lists of ex
by vog 12y ago
Great work! However, an additional testing section would be nice (right below the implementation section).
That section should provide two or three lists of example input values, and the expected output value (up to some accuracy).
As the author notes, although this formula looks pretty simple, you can make a lot of numerical mistakes when implementing it. A test suite would help implementors to catch those mistakes early.
- akane 12y agoAssuming the Julia implementation is correct, you could write tests based on output from that.