I wrote a note
Prime Factorization in the Gaussian Integers, /Journal of J/, 2 1 (2013) 4-
that might be of interest. The scripts from that note are
https://webbox.lafayette.edu/~reiterc/j/JoJ/gi_factor_notes.html
https://webbox.lafayette.edu/~reiterc/j/JoJ/gi_factor.html
Best, Cliff


On 6/7/2014 6:11 AM, Jon Hough wrote:
If I do 5% 2j1
I get:
2j_1
Clearly 2 and _1 are integers, but are represented as floats in the division.
i.e.

datatype +. 5%2j1
floating
How can I test if a float is an integer? e.g. in C:

if (value == (int)value){...}
My main motivation here is to find gaussian divisors (i.e. gaussian integers) 
of different integer values.
Regards.
                                        
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


--
Clifford A. Reiter
Lafayette College, Easton, PA 18042
http://webbox.lafayette.edu/~reiterc/

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to