| |||||||||||
| New arithmetic functions programmed in MINERVA are used exactly as built in functions. This allows both functional and relational notations for arithmetic expressions. MINERVA predicates for arithmetic evaluation, e.g. is/2 used on a function like "Result = f(A,...,N)" will search for a predicate "f(A,...,N,Result)". Thus arithmetic in MINERVA becomes easier to read and uses aggresive variable hiding.
% example: compute the cost for industrial urethane foam Here is the result for the above program: ?- a(Price).
| |||||||||||
| |||||||||||
| Back> |
|