混沌图像

目的

  下面这个简单方程的迭代结果非常有趣,如下图所示。正像世界上没有两片完全相同的雪花一样,这个方程的图像也是变化多端,大自然是位艺术大师。

x = y 1 b x 1 c s i g n ( x 2 ) y = a x 1 \begin{aligned} x&= y-1- \sqrt{|b*x-1-c|}*sign(x-2) \\ y &= a-x-1 \end{aligned}

  代码如下:

Table[{a, b, c} = RandomReal[{-10, 10}, 3];
 f[{x_, y_}] := {y - 1 - Sqrt[Abs[b*x - 1.0 - c]]*Sign[x - 2], a - x - 1.0};
 Graphics[{PointSize[0.003], Point[NestList[f, {0, 0}, 50000]]}], {i, 16}]

  多个吸引子。

发布了47 篇原创文章 · 获赞 361 · 访问量 29万+

猜你喜欢

转载自blog.csdn.net/robinvista/article/details/102018240