lorenz_attractor: Lorenz attractor

Description Usage Arguments Examples

View source: R/lorenz_attractor.R

Description

Generates data for plotting a Lorenz attractor and stores it in a data frame. The Rcpp implementation is from the blog post Drawing 10 Million Points With ggplot by Antonio Sanchez Chinchon.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
lorenz_attractor(
  a = 2,
  b = 0.7,
  c = 26,
  x0 = -1,
  y0 = 1,
  z0 = -1,
  dt = 0.01,
  n = 10000
)

Arguments

a, b, c

Parameters

x0, y0, z0

Initial point coordinates

dt

Time step

n

Number of points to generate

Examples

1

marcusvolz/mathart documentation built on May 24, 2021, 4:16 p.m.