ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   What is "Iteration" (https://www.excelbanter.com/excel-discussion-misc-queries/63851-what-iteration.html)

M. Homayon

What is "Iteration"
 
Please tell me about Iteration, and give an example how to use it.
thanks

famdamly

What is "Iteration"
 

I'm no expert, for what it's worth, the way I understand it, an
iteration, is an execution of a formula or process, or one cycle. I use
it to prevent circular reference errors. I set the iteration level to
one. I can't think of another use for it unless you could apply a
variable to the iteration setting.


--
famdamly
------------------------------------------------------------------------
famdamly's Profile: http://www.excelforum.com/member.php...o&userid=29382
View this thread: http://www.excelforum.com/showthread...hreadid=499198


Bill Martin

What is "Iteration"
 
M. Homayon wrote:
Please tell me about Iteration, and give an example how to use it.
thanks


----------------

If you mean as a general programming technique, iteration is to do something
over and over. As a trivial example you might add up a list of 10 array
elements as follows:

Sum = 0
for I = 1 to 10
Sum = Sum + Data(I)
next I

Programs are generally chock full of iterative loops to do things. You don't
want to write a million lines of code to do something a million times if you can
avoid it.

Bill

MrShorty

What is "Iteration"
 

As noted, iteration is kind of a broad topic. One way it is used in
math is to find the roots of equations (ie given y=f(x) what value(s)
of x cause y=0). Several different algorithms out there
(Newton-Raphson, secant, bisection, etc. any decent numerical methods
text should describe). Basically the idea is to "guess" at the root,
then, from information in the function, make a second (hopefully
better) guess and continue iterating until the algorithm converges to
an answer. Such methods aren't foolproof; there are cases where a
given algorithm will fail to converge, or converge to the wrong answer,
or diverge. Properly understood and applied, numerical methods
represent a good way of solving problems for which no analytic solution
exists.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=499198



All times are GMT +1. The time now is 09:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com