| lattice {elliptic} | R Documentation |
Returns a lattice of numbers generated by a given complex basis.
lattice(p,n)
p |
Complex vector of length two giving a basis for the lattice |
n |
size of lattice |
Robin K. S. Hankin
lattice
math
lattice(c(1+10i,100+1000i),n=2) plot(lattice(c(1+1i,1.1+1.4i),5))
R version 2.9.0 (2009-04-17)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(elliptic)
> png(filename="images/lattice_%03d.png" ,width=480, height=480)
> ### Name: lattice
> ### Title: Lattice of complex numbers
> ### Aliases: lattice
> ### Keywords: math
>
> ### ** 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))
>
>
>
> dev.off()
null device
1
>