lissajous: Lissajous polynomials

Description Usage Arguments Value See Also Examples

View source: R/lissajous.R

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

1
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

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

mpoly documentation built on March 26, 2020, 7:33 p.m.