When I query max , I get the following error
?-max(2,3).
ERROR: toplevel: Undefined procedure: max/2 (DWIM could not correct goal)
As i understand max is a library defined predicate and should work as is. I referred the http://www.swi-prolog.org/pldoc/man?section=arith and I find nothing wrong with the query. Similarly min( 2,3 ). wouldnt work either.
Although other functions like member , length are working fine. What could be wrong ??