【发布时间】:2015-03-02 17:15:55
【问题描述】:
我将以下复杂类文件用于复杂变量。
下面的 java 代码是 Mandelbrot 集的迭代计算器示例。
public int iterations(Complex no) {
Complex z = no;
int iterations = 0;
while (z.modulusSquared() < 4 && iter <= MAX_ITERATIONS) {
z = z.square();
z = z.add(y);
iter++;
}
return iter;
}
提前致谢!
【问题讨论】:
-
维基百科页面上的功能有什么不清楚的地方?