Eisenstein primes: Difference between revisions
m
The norm should be the square of the modulus.
m (→{{header|J}}: don't wrap, if possible (seems difficult to turn off wrapping here :( )) |
m (The norm should be the square of the modulus.) |
||
Line 12:
Eisenstein numbers can be generated by choosing any a and b such that a and b are integers. To allow generation in a relatively fixed order, such numbers can be ordered by their 2-norm or <em>norm</em>:
norm(eisenstein integer(a, b)) = |a + bω|² = <math>a^2 - ab + b^2</math>
;Task
|