nikisas_test
Utilities for testing implementation quality of mathematical functions. Computing errors for inputs randomly sampled from given interval.
Usage
To determine the errors:
use *;
// Uniformly sample 100000 values from -87.3 to 88.7.
with_count
// Use implementation from the standard library as ground truth.
.error
// Print the errors to standard output.
.print_plain;
To ensure desired error bounds:
use *;
// Uniformly sample 100000 values from -87.3 to 88.7.
with_count
// Use implementation from the standard library as ground truth.
// If eny specified error bound is violated, the program panics with a readable message.
.assert;
Documentation
See documentation on crates.io.
License
nikisas_test is licensed under MIT. Feel free to use it, contribute or spread the word.