Nepedia
Back to Discover
Independent Reader
🔢

Iteration

math Maturity 7-9 Next article →

Imagine you do a task over and over. Each time you finish, you start again. You use the new result to begin the next step. This set of steps is called iteration.

Hyperbolic rotation
Hyperbolic rotation

Math uses iteration to solve hard problems. It can find an answer that is close to the real one. One way is Newton's method. It helps find the square root of a number. Simple math rules can also make complex patterns when they repeat.

Computers use iteration too. Programmers use loops to repeat a block of code. This helps the computer do the same work many times. Some programs use iterators. These help work through data in a set order.

Hyperbolic rotation
Hyperbolic rotation

Iteration is like recursion. But they are different. In iteration, you know how many times to repeat. In recursion, you might not know the number of repeats. Recursion divides work into small pieces. It then puts them back together. This is how a merge sort works to order a list.

Teachers use iteration to help students learn. Students repeat a project or test. They do this until they master a skill. This is why people say practice makes perfect.

192 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Hyperbolic_rotation.gif
Hyperbolic_rotation.gif
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.