support logsum, very useful in probability computatiion

This commit is contained in:
Vitor Santos Costa
2013-07-25 10:20:33 -05:00
parent 1c2e17f86a
commit cc6e33bff0
2 changed files with 78 additions and 0 deletions

View File

@@ -4459,6 +4459,15 @@ The following predicates provide counting:
True if @var{Int3} = @var{Int1} + @var{Int2}. At least two of the
three arguments must be instantiated to integers.
@item logsum(+@var{Log1}, +@var{Log2}, -@var{Out} )
@findex logsum/3
@snindex logsum/3
@cnindex logsum/3
True if @var{Log1} is the logarithm of the positive number @var{A1},
@var{Log2} is the logarithm of the positive number @var{A2}, and
@var{Out} is the logarithm of the sum of the numbers @var{A1} and
@var{A2}. Useful in probability computation.
@item isnan(+@var{Float})
@findex isnan/1
@snindex isnan/1