Wolfram 语言与系统 10.0 (2014)|旧版文档

此为更早版本的 Wolfram 语言文档查看最新文档(版本11.2)

MandelbrotSetIterationCount

MandelbrotSetIterationCount[c]
returns the number of iterations of the function , beginning with , that are needed to determine whether c is in the Mandelbrot set.

更多信息和选项更多信息和选项

  • The Mandelbrot set is the set of all complex numbers c for which the sequence diverges to infinity when starting with .
  • With the option MaxIterations->n, the sequence will be iterated at most n times to determine if the sequence diverges.
  • The default setting is MaxIterations->1000.
  • If the maximum number of iterations is reached, z is assumed to be in the Mandelbrot set.
  • For some points that the algorithm knows in advance to be inside the Mandelbrot set, MandelbrotSetIterationCount will return one greater than the value of MaxIterations.

范例范例打开所有单元关闭所有单元

基本范例  (4)基本范例  (4)

Find the number of iterations needed to determine that is not in the Mandelbrot set:

In[1]:=
Click for copyable input
Out[1]=

Zero is known to be inside the Mandelbrot set and therefore returns :

In[1]:=
Click for copyable input
Out[1]=

It takes a few additional iterations to determine that 0.250001 is not in the Mandelbrot set:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

MandelbrotSetIterationCount works on all kinds of numbers:

In[1]:=
Click for copyable input
Out[1]=
2014年引入
(10.0)