as.primitive.RdGiven a pair of basic periods, returns a primitive pair and (optionally) the unimodular transformation used.
as.primitive(p, n = 3, tol = 1e-05, give.answers = FALSE)
is.primitive(p, n = 3, tol = 1e-05)Two element vector containing the two basic periods
Maximum magnitude of matrix entries considered
Numerical tolerance used to determine reality of period ratios
Boolean, with TRUE meaning to return extra
information (unimodular matrix and the magnitudes of the primitive
periods) and default FALSE meaning to return just the
primitive periods
Primitive periods are not unique. This function follows
Chandrasekharan and others (but not, of course, Abramowitz and Stegun)
in demanding that the real part of p1, and the
imaginary part of p2, are nonnegative.
If give.answers is TRUE, return a list with components
The unimodular matrix used
The pair of primitive periods
The magnitudes of the primitive periods
K. Chandrasekharan 1985. Elliptic functions, Springer-Verlag
Here, “unimodular” includes the case of determinant minus one.