Re: [pure-lang-users] Numeric Arguments
Status: Beta
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-08-14 13:26:08
|
Albert Graef wrote: > Eddie Rucker wrote: >> > rationalp 1; >> 0 >> >> Oops, Albert 1 is a rational number, so I think rationalp has a bug? > > No, I only implemented the syntactic number predicates so far, still > have to add the semantic ones. These are implemented now. (Mostly untested so far.) They should work the same as in Q, except that realvalp considers any complex value with zero imaginary part a real value. (In Q realvalp requires that the imaginary part is an exact zero, which would be rather inconvenient in Pure because that rules out most complex values in polar representation.) Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |