math:pow has poor precision. Example:
(import std.Math)
(print(math:pow 2 3))
This prints: 7.999999999999998
This is likely due to how it's defined, in terms of exp and ln. I understand that floating-point numbers have precision limitations, but I would expect pow to be precise when the representation allows it.
math:powhas poor precision. Example:This prints: 7.999999999999998
This is likely due to how it's defined, in terms of
expandln. I understand that floating-point numbers have precision limitations, but I would expectpowto be precise when the representation allows it.