Iteration 命令
- Iteration( <Function>, <Start Value>, <Number of Iterations> )
-
迭代函数 n 次( n = 迭代次数),使用给定的初始值。
-
定义
f(x) = x^2后,命令Iteration(f, 3, 2)给出结果 (3 2 ) 2 = 81. -
重复加法 :要实现对数字 3 重复加 7,定义
g(x) = x + 7,然后Iteration(g, 3, 4)得出 (((3+7) +7) +7) +7 = 31。
- Iteration( <Expression>, <Variable Name>, …, <Start Values>, <Number of Iterations> )
-
迭代表达式 n 次( n = 迭代次数),使用给定的初始值。结果即为 输出的最后一个元素 IterationList ,使用相同的参数。
Iteration(a^2+1,a,{(1+ί)/(sqrt(2))},5)
将对复数进行重复迭代
|
参见 IterationList 了解更多详情。 |