Returns a lattice of numbers generated by a given complex basis.

lattice(p,n)

Arguments

p

Complex vector of length two giving a basis for the lattice

n

size of lattice

Author

Robin K. S. Hankin

Examples

 lattice(c(1+10i,100+1000i),n=2)
#>            [,1]       [,2]   [,3]      [,4]      [,5]
#> [1,] -202-2020i -102-1020i -2-20i  98+ 980i 198+1980i
#> [2,] -201-2010i -101-1010i -1-10i  99+ 990i 199+1990i
#> [3,] -200-2000i -100-1000i  0+ 0i 100+1000i 200+2000i
#> [4,] -199-1990i  -99- 990i  1+10i 101+1010i 201+2010i
#> [5,] -198-1980i  -98- 980i  2+20i 102+1020i 202+2020i
plot(lattice(c(1+1i,1.1+1.4i),5))