ad-4.5.4: Automatic Differentiation
Copyright(c) Edward Kmett 2010-2021
LicenseBSD3
Maintainerekmett@gmail.com
Stabilityexperimental
PortabilityGHC only
Safe HaskellSafe-Inferred
LanguageHaskell2010

Numeric.AD.Internal.Doctest

Description

A version of Double that rounds to the twelfth digit if necessary. This is useful for ad's doctests since they must print out floating-point numbers in their entirety, but the actual numbers that get produced can vary slightly depending on machine-specific implementation details. (See #73 for an example.) This works around the issue by just rounding up the printed result to a point where it should be consistent across all machines.

Documentation