SvenssonAttractor: Johnny Svensson Attractors

SvenssonAttractorR Documentation

Johnny Svensson Attractors

Description

Functions to calculate the sequence of points given by the following dynamical system in order to draw the attractor of the system.

  • x[n+1]=d*sin(a*x[n])-sin(b*y[n])
  • y[n+1]=c*cos(a*x[n])+cos(b*y[n])

runSvenssonAttractor calculates the attractor. makeSvenssonAttractor makes a component that calculates and plots the Attractor.

Usage

makeSvenssonAttractor(type = "points", ...)

runSvenssonAttractor(
  a = 1.4,
  b = 1.56,
  c = 1.4,
  d = -6.56,
  inputx = 0,
  inputy = 0,
  x = NULL,
  y = NULL,
  runTime = 1e+05,
  sampleSize = NULL,
  reuseInput = FALSE
)

Arguments

type

The name(s) of the plotting function(s) used to plot the component. Defaults to "points". This can also include the names of classes linked to a plotting function.

...

parameters passed to the component and the component function runSvenssonAttractor. See "details" for more information.

a, b, c, d

The four parameters of the attractor from the above equations.

See Also

http://paulbourke.net/fractals/peterdejong/

Other 2dAttractors: CliffordAttractor, DeJongAttractor

Examples

art=makeSvenssonAttractor(cex=0.1,col=rgb(0,0,0,0.1))
easyPlot(art,preserveAspectRatio=TRUE)

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.