At least, the following code works for me:
sub expit { my $x = shift; 1.0/(1.0 + exp(-$x)); }
Or do you really want to manage probabilities that are under the 1e-308 threshold, and that's why you need Math::BigFloat?
In reply to Re: exp() bignum issue
by salva
in thread exp() bignum issue
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |