I have a series of probabilities p1, p2, p3, p4, and I need to transform each one to a logarithmic scale to make comparisons. This is easy to do with int datatypes, but I am using BigDecimal because I need precision, and I can't find a way to do it.
The code in Logarithm of a BigDecimal is giving me an error. Specifically, the code hasn't defined the method exp(). The response is marked up, but there are comments that concur that it is incomplete.
The undefined method:
BigDecimal eToX = exp(x, sp1);