Which of the following functions cannot receive a negative value
of x
when we are dealing exclusively with real
numbers?
log(x)
exp(x)
sqrt(x)
1/x
A.:
Just log(x)
and sqrt(x)
.
Which of the following functions cannot receive a zero value
of x
when we are dealing exclusively with real
numbers?
log(x)
exp(x)
sqrt(x)
1/x
A.:
Just log(x)
and 1/x
.
How would you simplify the following expressions to reduce the chance of overflow, underflow, or just to be more efficient?
log(sqrt(x))
sqrt(exp(x))
1/exp(x)
A.:
log(sqrt(x)) = log(x)/2
sqrt(exp(x)) = exp(x/2)
1/exp(x) = exp(-x)