Complex numbers in Clojush (by Brian Martin)

May 8, 2011
by Lee Spector (lspector)

Brian Martin has added support for complex numbers in Clojush; details below. Anyone feel like contributing an example file that uses this?

Available as usual from: https://github.com/lspector/Clojush

20110505: - Added complex number support.  New instructions for the 'complex' 
            stack include: pop, dup, swap, rot, flush, eq, stackdepth, yank, 
            yankdup, shove, rand, add, sub, mult, divide, fromfloat, 
            frominteger, fromfloats, fromintegers, conjugate, magnitude, 
            and principal_sqrt. (Brian Martin)


Leave a Reply

You must be logged in to post a comment.