Did you know ... | Search Documentation: |
![]() | Pack interval -- prolog/interval.pl |
An interval is represented as L...U, where L stands for the lower bound and U for the upper bound. If the upper bound is a negative number, it has to be written with an additional space, e.g., -3... -2, or in the infix notation, ...(-3, -2). The choice of using consult and not the module system is motivated by need for more flexibility.
interval(sqrt(A), Res)
'interval(sqrt1(A), Res)
'interval(A^atomic(N), Res)
' or 'interval(A**atomic(N), Res)
' with N being a natural numberinterval(exp(A))
, Res)'interval(abs(A), Res)
'interval(sin(A), Res)
'interval(+(A), Res)
'interval(-(A), Res)
'interval(max(A, B), Res)
'interval(min(A, B), Res)
'atomic(2)
), Res)'The following predicates are exported, but not or incorrectly documented.