What is the meaning of argument in the following phrase?

  • Thread starter Thread starter Femme_physics
  • Start date Start date
  • Tags Tags
    Argument
Click For Summary
SUMMARY

The term "argument" in programming refers to the value passed to a function when it is called, as exemplified by the function definition in C: double power(double x, int exponent). In this context, the argument of sin(3t) is 3t, where 3 is a coefficient. Understanding this terminology is essential for grasping function operations in programming languages, particularly in C and similar languages.

PREREQUISITES
  • Basic understanding of programming concepts
  • Familiarity with function definitions in C
  • Knowledge of mathematical functions and their arguments
  • Experience with programming terminology
NEXT STEPS
  • Study function definitions and calls in C programming
  • Learn about function parameters and return values in programming
  • Explore mathematical functions and their applications in programming
  • Investigate the differences between arguments and parameters in various programming languages
USEFUL FOR

This discussion is beneficial for programming students, software developers, and anyone looking to deepen their understanding of function mechanics in programming languages like C.

Femme_physics
Gold Member
Messages
2,548
Reaction score
1
What is the meaning of "argument" in the following phrase?...

Can someone define "argument" in this context? (attached file)

I never heard it before so it confuses me...
 

Attachments

  • argument.JPG
    argument.JPG
    90.6 KB · Views: 795
Mathematics news on Phys.org


It looks like the "argument" of the function is just the value to which you apply the function.
If the previous frase sounded confusing: the argument of f(x) is x. So in this case: the argument of sin(3t) is 3t. So you see that there is a coefficient 3 in the argument.
 


The term "argument" is used heavily in computer programming to describe a value that a function parameter is given when the function is called.

For example, a function might be defined in C as
Code:
double power( double x, int exponent)
{
   .
   .
   .
}
In the function definition above, the function parameters are x and exponent. The function would be called like this:
Code:
result = power(7.0, 2)
The arguments to this function are 7.0 and 2.

In the attachment, "argument" is used in the same sense.
 


Ah...that clears it. Just the first time I hear it. Thanks :)
 


Femme_physics said:
Ah...that clears it. Just the first time I hear it. Thanks :)

Argument of a function in that context is quite a commonly used term.
 


I once had students ask about using the word "product" to mean the result of a multiplication!
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 45 ·
2
Replies
45
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
971
  • · Replies 58 ·
2
Replies
58
Views
4K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
9
Views
1K