mpoly (version 1.1.1)

lissajous: 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

Run this code
# NOT RUN {
lissajous(3, 2,  -pi/2, 0)
lissajous(4, 3,  -pi/2, 0)

# }

Run the code above in your browser using DataCamp Workspace