what is the use of function?
A function, in mathematics, 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. The argument and the value may be real numbers, but they can also be elements from any given set. An example of a function is f(x) = 2x, a function which associates with every number the number twice as large. Thus 5 is associated with 10, and this is written f(5) = 10.
functions are things that does an process and gievs u a return value for example : funcion sum(a,b) { sum=a+b; return sum; } that if you write sum(3,4) the return valu eof that will be 7... mark o. explained this better.
thanks :)
wc moon gazer hope that helps you out
Any processing of numbers that has a pattern is represented as a function like addition, subtraction, division, multiplication, combination of these etc. It is like finding patterns in number processing.
Join our real-time social learning platform and learn together with your friends!