Computer Science, asked by gagandeepbhullar4335, 4 months ago

What is a function?Give 4 examples​

Answers

Answered by maniyachawla12
0

Answer: This may help you

Explanation:

A function is a mapping from a set of inputs (the domain) to a set of possible outputs (the codomain). The definition of a function is based on a set of ordered pairs, where the first element in each pair is from the domain and the second is from the codomain. But, a metaphor that makes the idea of a function easier to understand is the function machine, where an input x from the domain X is fed into the machine and the machine spits out the element y=f(x) from the codomain Y. Below, the domain is visualized as a set of spheres and the codomain as a set of cubes, so that the function machine transforms spheres into cubes.

Answered by Brainlyboy00
4

Answer:

A function is a mapping from a set of inputs (the domain) to a set of possible outputs (the codomain). The definition of a function is based on a set of ordered pairs, where the first element in each pair is from the domain and the second is from the codomain

Similar questions