pkg/math: reuse Ln2 and Ln10 in Log2E and Log10E
Upstream Go's math package has always used these simple divisions,
and now that pkg/gen.go can resolve complex expressions via go/types,
we can use exactly the same expression in our package.
This change is a no-op, which is guaranteed by Example_constants.
The new code is a lot less verbose and easier to understand, too.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I93dbeb26d3b496c724d53c95afad01f8583e56e0
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/557323
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>