-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Split Linear.Epsilon into own package. #161
Comments
I have also wondered about making |
Yes, so
testing that two numbers are equal. (And I think that we should check for relative error, above it's not visible as 10 is not extremely large nor extremely small number) I fail to find any reliable source saying "Numerically stable computations using |
I also support the idea of splitting Linear.Epsilon in its own package. As soon as one wants to test functions on floats we need this. I also think it would be great to be able to adjust the epsilon value depending on the need, for instance in QuickCheck it would be great to be able to specify some epsilon to explicitely say what error is fine. I just made a PR #184 that adds a class @phadej I couldn't find the class |
@AliceRixte |
FWIW, I don't think that Therefore I'm closing this, I have no good idea of what I want exactly, but I know that's not |
I find often needing it when doing something numeric (e.g.
ad
), but depending onlinear
feels wrong. A package (epsilon
) would be very nice.I'll probably will make it anyway, but it would be nice to dedup functionality on Hackage.
Another example is ApproxEq in
aeson
which does slightly different thing, but could reuseEpsilon
class for implementations.EDIT: also
half
could depend on it.The text was updated successfully, but these errors were encountered: