functions.txt 462 B

1234567891011121314
  1. This is kind of a chaotic function I made, it could be used e.g. for fractal
  2. noise. The basis is a function
  3. A * sin(0.1 * F * x + 7 * sin(0.07 * F * x)
  4. where A is amplitude and F is frequency. Adding these together with increasing
  5. frequency and decreasing amplitude creates a nice curve, e.g.:
  6. 10 * sin(0.1 * x + 7 * sin(0.07 * x)) +
  7. 5 * sin(0.2 * x + 7 * sin(0.14 * x)) +
  8. 2.5 * sin(0.4 * x + 7 * sin(0.28 * x)) +
  9. 1.125 * sin(0.8 * x + 7 * sin(0.56 * x))