lissajous: Lissajous polynomials

View source: R/lissajous.R

lissajousR Documentation

Lissajous polynomials

Description

The Lissajous polynomials are the implicit (variety) descriptions of the image of the parametric map x = cos(m t + p), y = sin(n t + q).

Usage

lissajous(m, n, p, q, digits = 3)

Arguments

m, n, p, q

Trigonometric coefficients, see examples for description

digits

The number of digits to round coefficients to, see round.mpoly(). This is useful for cleaning terms that are numerically nonzero, but should be.

Value

a mpoly object

See Also

chebyshev(), Merino, J. C (2003). Lissajous figures and Chebyshev polynomials. The College Mathematics Journal, 34(2), pp. 122-127.

Examples


lissajous(3, 2,  -pi/2, 0)
lissajous(4, 3,  -pi/2, 0)


dkahle/mpoly documentation built on July 27, 2023, 11:44 p.m.