Computer Science, asked by anushree13238, 5 months ago

what is a function? give two examble​

Answers

Answered by Anonymous
8

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.

Answered by Deepthi0109
1

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.

EXAMPLES:

For example, the position of a planet is a function of time. This relationship is commonly symbolized as y = f(x). The user puts in money, punches a specific button, and a specific item drops into the output slot.

Similar questions