question id: eval-functions-at-input-1
Chap 5 Exercises
\[ \newcommand{\dnorm}{\text{dnorm}} \newcommand{\pnorm}{\text{pnorm}} \newcommand{\recip}{\text{recip}} \]
Exercise 1 These questions ask you to find the output of a pattern-book function for a specified input value.
Answer the questions using Active R chunk lst-eval-functions-at-input.
- What is the exact output of the pattern-book exponential function when the input is \(x=0\)?
- What is the exact output of the pattern-book sine function when the input is \(x=0\)?
question id: eval-functions-at-input-2
- What is the exact output of the pattern-book sigmoid function when the input is \(x=0\)?
question id: eval-functions-at-input-3
- What is the output (to several digits) of the pattern-book Gaussian function when the input is \(x=0\)?
question id: eval-functions-at-input-4
- What is the exact output of the pattern-book constant function?
question id: eval-functions-at-input-5
- For question (5), why was it OK that I didnβt tell you what the input value is?
Exercise 2
- Which of the pattern book functions has an output value very near zero over almost all of its domain?
question id: output-values-1
- Which of these basic modeling functions has value very near zero over almost half of its domain?
question id: output-values-2
- Which of these basic modeling functions has value very near zero over almost half of its domain?
question id: output-values-3
- Which of these pattern-book functions is not a monomial?
question id: output-values-4
- Which value(s) is missing from the domain of \(x^{-1}\)?
Zero
All non-positive numbers
Negative numbers
No numbers are missing.
question id: output-values-5
- Which value(s) is missing from the domain of \(x^{1/2}\)?
Zero
All non-positive numbers
Negative numbers
No numbers are missing.
question id: output-values-6
- Which value(s) is missing from the domain of \(\ln(x)\)?
Zero
All non-positive numbers
Negative numbers
No numbers are missing.
question id: output-values-7
Which value(s) is missing from the domain of \(\sin(x)\)?
Zero
All non-positive numbers
Negative numbers
No numbers are missing.
question id: output-values-8
- Which value(s) is missing from the domain of \(x^{-1/2}\)?
Zero
All non-positive numbers
Negative numbers
No numbers are missing.
question id: output-values-9
Exercise 3
- Which of the following values is in the domain of the function \(x^{0.429}\)?
question id: in-the-domain-1
- Is zero in the domain of the function \(x^{-1}\)?
question id: in-the-domain-2
- Which of the following values is in the domain of the function \(\sin(x)\)?
question id: in-the-domain-3
- What is the output from the command
log(-1)
?
question id: in-the-domain-4
- What is the output from the command
log(0)
?
question id: in-the-domain-5
- Which of the following values is in the domain of the function \(\ln()\)?
question id: in-the-domain-6
- Which of the following values is in the domain of the function \(x^2\)?
question id: in-the-domain-7
Exercise 4
- By how much should you increase the input to the exponential function to produce a doubling of the output?
question id: doubling-exp-1
- By how much should you increase the input to the exponential function to produce a quadrupling of the output?
question id: doubling-exp-2
- By how much should you decrease the input to the exponential function to cut the output value by a factor of one-half?
question id: doubling-exp-3
Exercise 5 Active R chunk lst-variations-on-exp defines a function \(h()\) that is a variation on the exponential function, but not written in the form \(e^t\):
- Judging from the output when you run the code, what is the doubling time for this function? (Choose the closest answer.)
question id: variations-on-exp-1
Here is another form of exponential function, again written in an unconventional form.
- Using trial and error, find the doubling time for \(g()\).
question id: variations-on-exp-2
Exercise 6 The R/mosaic commands in Active R chunk lst-sin-period draw a plot of the pattern-book sinusoidal function and evaluate the sinusoid for two inputs. The sinusoid is a periodic function, that is, the output repeats itself over and over as the input increases. The time that it takes for one cycle is called the period of the function.
Using trial and error in Active R chunk lst-sin-period, find the period of the sinusoid.
Exercise 7
- True or false: \(2^x\) is a power-law function.
question id: cat-lend-futon1
- True or false: \(3/x^2\) is a power-law function.
question id: cat-lend-futon2
- True or false: \(5\sqrt{x}\) is a power-law function.
question id: cat-lend-futon3
- The gravitational force, F, between two bodies is inversely proportional to the square of the distance \(d\) between them. Then β¦
question id: cat-lend-futon4
Exercise 8 The following traditional-style notation is intended to define a function that is 2 times the pattern-book sinusoid. But something is wrong.
\[g(t) \equiv 2 \sin(x)\] Whatβs wrong with the definition?
\(g()\) isnβt an appropriate name
The formula should be written \(2 \times \sin(x)\)
\(t\) is not a good choice for the input name.
The input name in the formula does not match the input name on the left side of \(\equiv\).
question id: OCSP2
:::
Exercise 9 The following exponential function y()
is written in terms of a parameter b
. You can set the parameter by giving its value as a named argument to y()
. For instance, in the following, b
is being set to 1.6.
- How can you tell from the output from Active R chunk lst-y-fun-double that 7 is not the doubling time of
y()
whenb=1.6
?
- Using trial and error with Active R chunk lst-y-fun-double, find a value for
b
that corresponds to a doubling-time of 7. Choose the closest answer. (Remember, you will be changingb
.)
question id: expb-2
- What about the output from Active R chunk lst-exp-double makes it clear that 3 is not the doubling time for the pattern-book exponential function
exp()
?
- Using trial and error in Active R chunk lst-exp-double, find the doubling time for the
exp()
function. (Pick the closest answer.)
question id: exp-double