real functions (not sure of my answers)
Indicate whether the described function is a real function
a)the binary operation of addition of real numbers.
b)the operation that corresponds each nonzero real numbers with its two square roots.
c)the function that associates with each quadratic polynomial function p defined by y=p(x)=ax^2+bx+c with a not equal to zero the coordinates (r,s)of the vertex of the graph of p in the xy-plane
d)the function that maps each positive integer into the number of its different prime factors.
e) the function f with f(x)=0 for all real numbers x
f)the Dirichlet function D with D(x)=1 if x is rational and D(x)=0 if x is irrational.
Re: real functions (not sure of my answers)
b) is wrong if it returns both square roots since a function can only return one single output (not two). If you are returning the two square roots of a positive number which you are taking the square root of, then this is not a function.
e) is wrong as well since f maps all numbers to a unique value for every element of the domain and this is a function.