Update
This commit is contained in:
parent
1343c90ee8
commit
edb70b8898
33 changed files with 2184 additions and 2044 deletions
|
@ -1,6 +1,6 @@
|
|||
# Function
|
||||
|
||||
Function is a very basic term in [mathematics](math.md) and [programming](programming.md) with a slightly different meanings in each, also depending on exact context: mathematical function basically maps [numbers](number.md) to other numbers, a function in programming is similar but is rather seen as a subprogram to which we divide a bigger program. Well, that's a pretty simplified gist of it but it's roughly how it is. Incoming is a more detailed explanation.
|
||||
Function is a very elementary term in [mathematics](math.md) and [programming](programming.md), with a slightly distinct meaning in each of the both fields and further context: mathematical functions, practically speaking, map [numbers](number.md) to other numbers; a function in programming is similar but is rather seen as one of many subprograms of which the main program is composed. Well, that's a pretty simplified gist of it but it's roughly how matters stand. A more detailed explanation will follow.
|
||||
|
||||
Yet another attempt at a quick summary: imagine function as a miniature box. In mathematics you throw numbers (or similar object, for example [sets](set.md)) into the box and it spits out other numbers (or "objects"); the number that falls out always only depends on the number you throw in. So the box essentially just transforms numbers into other numbers. In programming a function is similar, it is also a box into which you throw numbers and can behave like the mathematical function, but the limitations are relaxed so the box can also do additional stuff, it may for example light up a light bulb; it may also remember things and sometimes shit out a different number when you throw in the same number twice -- sometimes the box is so fancy that it doesn't even need any input numbers anymore, it's just turned on with a button and it starts going around and doing stuff.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue