Re: [q-lang-users] Exponentiation operator
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2006-06-16 22:02:34
|
John Cowan wrote: > I can live with it, I think, as long as all operators do appropriate > argument promotion. In particular, the numeric comparisons should work properly > in all cases except ordering involving complex numbers. Yes, that's the case already in the current release, and will still work in Q 7.2 when rational.q will be part of the standard library. > I now think that ^ should always return a float (transcendental exponentiation) > whereas pow should accept any exact left argument and integer right argument > and return an integer or rational result. Right, that's how it's going to be (I think that Rob's implementation already does this). Ok, so it looks like this is resolved. Back to coding. :) Thanks for the replies, 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 |