question here and would be greatly appreciated if you could help.
I am trying to calculate the sigmoid value of a bigdecimal using something along the lines of this code that I use for double values
double a = 1 / (1 + Math.exp("a"));
However I would like to perform the same operation for the bigdecimal datatype but I cannot find code that will do this for a bigdecimal
Math.exp(x)
Is there any short piece of code that would provide this sigmoid value on a bigdecimal
Thanks in advance
Have a look at Bayesian MCMC BigDecimalUtils.exp() which uses Taylor’s formula.