pkg/math: add tests which show the API constants
consts.txtar shows the constant values exposed via the CUE std API,
and Example_constants shows the same ones exposed via the Go API.
Note that we're not particular about the precision used by the Go test;
we mainly aim to see whether the values look roughly correct or not.
This is in preparation for https://cuelang.org/cl/557322,
which will fix one of the constants to not truncate to an integer.
Note that Log2E and Log10E are truncated to the integers 1 and 0,
a bug which will be fixed in the next commit.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ie737f7a7ff7a609cdb9fc74df64bddc2e423f00f
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/557321
Reviewed-by: Paul Jolly <paul@myitcv.io>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>