answersLogoWhite

0


Best Answer

Functions basically establish relationships between expressions. Many common Algebraic functions are expressed as functions of x:

f(x) = x2 + 4

Which could also be written as y = x2 + 4

However, this just scratches the tip of the universe. Not only do mathematical functions vary in complexity and offer an infinite number of possibilities, there are also programming functions. Programming functions are typically groups of commands that accept one or more parameters, then return one or more pieces of information.

The above Mathematical function can be re-written as a Perl programming function that accepts a value for x:

sub calculateFunction {

my ($x) = @_;

my $y = x**2 + 4;

return ($y);

}

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an example of a function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is meant by a function call?

A function call is where you "call" a function and execute its body. For example: void example() { } int main() { example(); // call the function "example" and execute its bodyreturn 0; }


The max function is an example of what function?

It is a Basic Statistical Function.


Which is an example of a function?

Y = X2 Is a parabolic function.


When a function is used as an argument in another function?

It is called callback function. For an example see the qsort function.


The function is not an example of a rational function?

y = cuberoot(x) for real x is not a rational function.


Does every function have an inverse that is a function?

No. A simple example of this is y = x2; the inverse is x = y2, which is not a function.


What is an example of a simple borel measurable function?

One example of a simple Borel measurable function is the indicator function of a Borel set. This function takes the value 1 on the set and 0 outside the set, making it easy to determine its measurability with respect to the Borel sigma algebra.


What is a Function Library?

fsetpos for example.


What is an example of a state function?

all of these


Example of fundamental difference between a polynomial function and an exponential function?

fundamental difference between a polynomial function and an exponential function?


How do you you rewrite a rule as a function?

You need to give an example of the rule and the function you want.


How do you accept a string by using getch() function with an example?

explain about function call