Nepedia
Back to Discover
Fluent Reader
🔢

Computable function

math Maturity 11-13 Next article →

Imagine you have a recipe for baking a cake. You follow every step in order. You do not need to guess or be a magic chef. You just follow the instructions to get a result. In math, we call a set of steps like this an algorithm. A function is a rule that takes an input and gives an answer. If we can use an algorithm to find that answer, the function is called computable.

This idea is very important for understanding what computers can actually do. It helps us know which problems have a clear path to a solution.

To be truly computable, a procedure must follow three main rules. First, the instructions must be a finite length. You cannot have a recipe that never ends before you even start. Second, the steps must be exact. You follow them one by one without needing special insight. Third, if the input has an answer, the process must stop after a finite number of steps.

If an input does not have an answer, the process might just keep going forever. It might never stop, and that is okay. The rules say it just must not pretend to find a wrong answer.

Many different math models have been used to define these rules. Some people use machines called Turing machines to study them. Others use something called lambda calculus or register machines. Even though these models look very different, they all find the same class of functions.

This means that formal computability is a natural idea. It does not matter which model you pick. In 1934, mathematicians Kleene and Gödel discussed these ideas. They helped distinguish between different types of these mathematical rules.

There is a famous idea called the Church-Turing thesis. This is an unprovable assertion about how math and machines work. It suggests that any kind of computing we can imagine will only compute these same types of functions.

Some functions are easy to solve, like adding two numbers together. Other functions are much harder and take a very long time. This study of time and space is called computational complexity. Some algorithms might take an amount of time that grows extremely fast as the input gets larger. This is called exponential growth.

We can see computable functions in many parts of our world. You can use them to find the smallest prime factor of a number. You can also use them to find the greatest common divisor of two numbers.

Even some mysteries in math are computable. For example, we can write a rule about the digits of the number pi. We might not know the answer for every number yet. However, we know that a rule to find it must exist. This shows how math helps us organize what is possible to know.

466 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

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.