Is the Square Root of a Number Always Considered a Function?

  • Thread starter pamparana
  • Start date
  • Tags
    Functions
In summary, the conversation discusses the definition of a function and the confusion surrounding the square root function. The book correctly defines a function as having one distinct input for one distinct output, while the square root function is usually defined as only having a positive output. The concept of multivalued functions is also mentioned, and it is noted that the quadratic equation formula includes the +/- symbol to account for both positive and negative roots. The conversation concludes with the realization that the square root symbol can have different meanings depending on the context.
  • #1
pamparana
128
0
Hello,

My calculus book is confusing and I am pretty sure this is an error. It describes a function as one where one distinct input will have one and only one distinct output. Fair enough.

The next example is output of f(x) = square root (x) when input is 25!

Clearly, this is not a function! This relation (obviously) does not result in a unique output for every unique input, right? square root (25) = +5 and -5.

Or am I missing something in function defs. The book does not even consider the negative value of a square root operation.

That's what I get for buying the idiot's guide...

Please let me know if I am missing something here.

Thanks,

Luca
 
Physics news on Phys.org
  • #2
Your calculus book is correct. A function maps each element in the domain to a unique element in the range.
The square root function is usually defined to be the positive square root. Sometimes you can talk about http://en.wikipedia.org/wiki/Multivalued_function" such as 'plus or minus the square root', but they are not functions, strictly speaking. (they are relations)
 
Last edited by a moderator:
  • #3
This is why the +/- is needed next to the discriminant in the quadratic equation formula. If the square root symbol was understood to mean both positive and negative roots, it wouldn't be necessary.
 
  • #4
Thanks guys. I always thought that the square root symbol always meant both +ve and -ve roots.

cheers
 

FAQ: Is the Square Root of a Number Always Considered a Function?

What is a function?

A function is a block of code that performs a specific task or set of tasks. It can take in input values, called parameters, and return an output value.

What is the purpose of a function?

The purpose of a function is to break down a complex problem into smaller, more manageable parts. It also allows for code reuse and modularity, making it easier to maintain and update code.

How do you declare a function?

A function can be declared using the keyword "function" followed by the function name, a set of parentheses for parameters, and curly braces for the function body.

What is the difference between a parameter and an argument?

A parameter is a variable in the function's declaration, while an argument is a value passed into the function when it is called. Parameters are used to define the function, while arguments are used to execute it.

How do you call a function?

A function can be called by using its name followed by a set of parentheses. If the function has parameters, their values can be passed in as arguments within the parentheses.

Similar threads

Replies
3
Views
2K
Replies
1
Views
1K
Replies
3
Views
3K
Replies
4
Views
1K
Replies
3
Views
1K
Replies
4
Views
1K
Back
Top