## abayomi 3 years ago what is a function?

1. moneybird

function is like an input-output machine

2. GT

From Wikipedia: In mathematics, a function associates one quantity, the argument of the function, also known as the input, with another quantity, the value of the function, also known as the output. A function assigns exactly one output to each input.

3. karatechopper

ur x's cant repeat

4. mathteacher1729

In math, a function has two basic steps: 1) you start with some number, called an "input". 2) the function "DOES STUFF" to the input (squares the number, then adds one, or takes the square root of the input and divides by two, etc.) 3) after you're done, you have the output. So if the function is f(x) = 3x + 1 a sample "input" would be x = 4 The function "DOES STUFF" to x = 4, specifically, this function takes x , multiplies it by three, and then adds one. So the OUTPUT is 3*4 +1 = 12 + 1 = 13. :) Hope that helps.

5. abayomi

a function is anything applied to an entity to change its state? i.e a "function" is a modifier?: just so im clear

6. mathteacher1729

A function DOES something to the input.

7. abayomi

thanks @mathteacher1729 that was clear

8. GT

I don't think it is change the state of anything. It is simply allowing you to "compute" an output value given an input value. Like a transformation of input value to an output value.

9. abayomi

sounds like a codebreaker key ring

10. abayomi

to be graphic i could say the enigma machine is a function?

11. GT

Hmmmmm.....looks like we have a newbie spammer here.

12. abayomi

lol

13. abayomi

i"ll ignore the insult

14. dmihail

Do you know what a relation is ? mathematically speaking ...

15. abayomi

i have a rather foggy idea.

16. dmihail

Well, you can think of relations between people. It's the same thing, only it's more abstract. So a function is a relations. Let's say you have 2 sets of people. Then, you define a relation, like "friendship", and you say that x from the first set is in relation with y from the second set ( x,y are people ) if and only if x is friend with y. You can also say the same thing with the following notation : xRy. For that relation to be a function, x has to be friend with only y. So every person from the first set must have only one person in the second set with which he is in relation. So that's another way of defining functions : a relation for which every x from the domain ( or input ) must have one and only one y in the codomain ( output ) such that xRy. And since this is a function, you can note f(x) = y. Hope this didn't confuse you more :)

17. mathteacher1729

Function vs. Relation Function ==> Each input goes to exactly and only one output. Just as one person cannot be in two places at once, one input cannot go to more than one output. Relation ==> Each input can go to as many outputs as the function pleases. It's the equivalent of one person being in more than one place at once.