Did you know ... Search Documentation:
Pack genutils -- prolog/math.pl
PublicShow source
 stoch(+X:list(nonneg), -Y:list(nonneg), -Total:nonneg) is semidet
 stoch(+X:list(nonneg), -Y:list(nonneg)) is semidet
Compute normalised probability distribution from histogram counts, with total. Fails if total is less than or equal to zero.
 to_float(+Expr, -FloatVal:float) is det
Return the floating point value of Expr as evaluated by is/2.
 map_sum(+P:pred(+number,+number,-number), +L1:list(number), +L2:list(number), -S:number) is det
 map_sum(+P:pred(+number,-number), +L:list(number), -S:number) is det
Map P (arity N) over (N-1) supplied lists sum the resulting (Nth) list. Provided as predicates and goal expansions.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 mul(Arg1, Arg2, Arg3)
 sub(Arg1, Arg2, Arg3)
 add(Arg1, Arg2, Arg3)
 neg(Arg1, Arg2)
 divby(Arg1, Arg2, Arg3)
 recip(Arg1, Arg2)
 log(Arg1, Arg2)
 exp(Arg1, Arg2)
 gammaln(Arg1, Arg2)
 max(Arg1, Arg2, Arg3)
 equal(Arg1, Arg2, Arg3)
 prodlist(Arg1, Arg2)
 map_sum(Arg1, Arg2, Arg3)