Regarding the function definition, thanks, please explain the definition of the function.

Updated on technology 2024-04-20
9 answers
  1. Anonymous users2024-02-08

    The function definition consists of three parts: the return type, the function identifier, the required parameters of the function, and the function body, for example.

    int example(int parameter)int a;

    a=parameter;

    return a;

    This function requires that an integer be returned, and the value of return a must be an integer, otherwise a conversion will occur, and if it is a double, it will be truncated.

    Typically, only function declarations are stored in header files.

    The declaration only tells the function the entry address.

  2. Anonymous users2024-02-07

    I learn pascal

    The general format of a function definition is:

    function name (formal parameter table): function type; ......This is the function header.

    Description of local variables (e.g. var, etc.).

    begin statement one;

    Statement 2; Statement three;

    statement n; Function name: = expression;

    end;Example:

    function sum(n:integer):integer;

    vars,i:integer;

    begins:=0;

    for i:=1 to n do

    s:=s+i;

    sum:=s;

    end;

  3. Anonymous users2024-02-06

    Give you a ** and you'll know.

    #include

    void display()

    printf("hello world!");

    void main()

    display();

    Like above, if the custom function is written in front of the main function, it does not need to be declared.

    And below: include

    void display();Function declaration section.

    void main()

    display();

    void display()

    printf("hello world!");

    Custom functions are written after the main function and must be declared.

  4. Anonymous users2024-02-05

    A function is a small section of information that handles something.

  5. Anonymous users2024-02-04

    What kind of programming or excel or math are you asking?

  6. Anonymous users2024-02-03

    Function definition: Let a and b be two sets, if according to a certain correspondence rule f, for any element in set a, there is a unique element corresponding to it in set b, such correspondence is called a mapping from set a to set b, and it is denoted as f: a-->b

    When sets a and b are both sets of non-empty numbers, and each element of b has a preimage, the mapping f:a-->bIt's called a function that defines domain a to domain b

    The definition in junior high school textbooks is: generally, there are two variables xy, one of which changes with the change of the other variable x, and a value of x is given and there is a unique value of y corresponding to it. x is called the independent variable and y is called the dependent variable.

    FunctionsIn mathematics, a function is a relation that causes each element in one set to correspond to the unique element in another (possibly identical) set.

    A dependent variable is a variable that is associated with another quantity, and any value of this quantity can find a fixed value in the other quantity.

    A rule that two sets of elements of a function correspond one-to-one, and each element in the first group has only a unique counterpart in the second group.

    The concept of functions is fundamental to every branch of mathematics and quantification.

    The terms function, mapping, correspondence, and transformation usually have the same meaning.

    However, the function only represents the correspondence between numbers, and the mapping can also represent the correspondence between points, between graphs, etc. It can be said that a function is a special kind of mapping.

  7. Anonymous users2024-02-02

    Summary. Functions are a special class of relationships. A function is a relationship between several variables, and it represents a one-to-many mapping, i.e., it has one or more arguments, but it has only one value.

    It is a special, meaning-determined expression that, in addition to the calculated value, can also explain the relationship between its own finite part operations. Specifically, a function can be summarized as a relationship in which a number of values are called parameters, a relationship is fixed while the parameters change, and when the parameters change, the relationship and its results change accordingly.

    Functions are a special class of relationships. A function is a relationship between several variables, and it represents a one-to-many mapping, i.e., it has one or more arguments, but it has only one value. It is a special expression determined by the meaning of the group, in addition to the value of the world, it can also explain the relationship of its own limited part of the operation.

    Specifically, a function can be summarized as a relationship in which a number of values are called parameters, a relationship is fixed while the parameters change, and when the parameters change, or the spike relationship and its results change accordingly.

    Excuse me, but please go into more detail?

    Functions are a special class of relationships. A function is a relationship between several variables, and it represents a one-to-many mapping, i.e., it has one or more arguments, but it has only one value. It is a special expression determined by the meaning of the group, in addition to the value of the world, it can also explain the relationship of its own limited part of the operation.

    Specifically, a function can be summarized as a relationship in which a number of values are called parameters, a relationship is fixed while the parameters change, and when the parameters change, or the spike relationship and its results change accordingly.

  8. Anonymous users2024-02-01

    Why is the recommended answer so complicated, I don't understand.

  9. Anonymous users2024-01-31

    In the function f(x-1), the independent variable is x, not x-1, if you find the definition domain, it is the value range of x, and finally the value range of the argument is the definition domain pair.

    Classic examples. The domain of y=f(x+1) is [-2,3], so the inequality -2 x 3 is satisfiedx range.

    1≤x+1≤4 ..f acts as x+1, so the domain of y=f(x) is [-1,4].

    Therefore, for (2x-1) in y=f(2x-1), the value must be -1 2x-1 4 in [-1,4].

    0≤2x≤5

    0≤x≤5/2

    That is, the domain of y=f(2x-1) is [0,5 2].

Related questions
20 answers2024-04-20

Knowing the analytic formula to define the domain: just make sure that the formula is meaningful, for example, the denominator is not 0, the base is not 0 under the even root number, the base of the 0 power is not 0, the true number of the logarithmic formula is greater than 0, the base is greater than 0 and not 1, etc. >>>More

8 answers2024-04-20

The traditional definition of a function: if there are two variables x and y in a certain change process, if y has a uniquely definite value corresponding to each definite value of x in a certain range, then y is said to be a function of x, and x is called an independent variable. We call the set of values of the independent variable x the definition domain of the function, the value of y corresponding to the independent variable x is called the function value, and the set of the value of the function is called the domain of the function. >>>More

19 answers2024-04-20

1. Isn't the even function about y-axis symmetry? Why is it also about symmetry of the coordinate origin??? It's just that I don't understand this!! >>>More

6 answers2024-04-20

How to use:

First of all, enter "=vlookup(" in cell i4, then excel will prompt 4 parameters. >>>More

8 answers2024-04-20

There is a connection because char * is very special, char * is actually to open up a constant memory to store a string, and then return the first address of this string, then the landlord finally said that if the search is successful, it will return a non-null return value, this address is actually the first address of the result If successful, then your strstr function has already written a search function, this pointer starts from the first character in the original string, and the pointer moves backwards one by one, If a substring is found, the current pointer is returned, which is actually the address of one of the characters of the original string.