Subject: using the 'mp' package

From: Nicos Angelopoulos <[email-masked]>
Date: Mon, 8 May 2000 11:44:38 +0100

point 1 

has anybody any success with mp_z/2
in the mp package ?

i get 

mp_z( 28, Z ).

Z = 28 ;

No
?- mp_z( '28', Z ).

No
?- mp_z( "28", Z ).

No

from the doc in mp.c i get the impression  that 
when the first argument is a _string_ representing
an integer the pred should be able to pick it up 

(btw i use pl-3.3.6 mp-1.2 and gmp2.0.2- no patches)

mp_z/2 along with mp_gcd/3 should solve the original 
poster's probs

point 2 

for representing probability (which i think is an important
abstraction for many areas to which prolog is a good match) 
the maximum benefit per implementor hour (:-))
is to provide long integer arithmetic the rest is 
fast enough to implement in prolog

i think that this is also true for constraints (over Q) 

regards

nicos.