157k views
0 votes
What are functions? Give three (3) examples of mathematical functions​

User Yogu
by
4.6k points

2 Answers

1 vote

Answer:

Step-by-step explanation:

A function in programming is a piece of program code that carries a set of instructions or commands that solve a specific task. They were introduced into programming in order to reduce the number of lines of code. In order not to describe some task with dozens of lines of code, you can use a function that describes the task in one line.

3 functions in programming:

Abs (x) - Modulus

Sin (x) - Sine

Sqrt (x) - Square root

What are functions? Give three (3) examples of mathematical functions​-example-1
User Daemon
by
5.0k points
0 votes

Answer:

A function is mathematical relation where the domain (x/input) has only 1 range (y/output) that matches to it.

For example, if the domain is 7, it can only match to one range. 7 cannot match to (for example) 2 and 3. However, multiple domains can have the same range. For example, domains 7 and 8 can both output to range 2.

That is the main difference from an equation.

Examples:

f(x) = x^2

f(x) = |x|

f(x) =
√(x)

User Humansg
by
4.7k points