Calculus I for Programmers

Section quiz

Contents

Contents

Calculus I for Programmers

0 of 184 complete

Section quiz

Limits, via floating point

Nine questions on difference quotients, on what the limit notation claims, and on the two ways a loop that shrinks h stops telling the truth.

Questions are shuffled within each part, and so are the answers. You can retake it as often as you like.

0 of 9 answered

Quotients and limits

Question 1

What is lim⁡x→0∣x∣x\lim_{x \to 0} \dfrac{|x|}{x}?

Question 2

What does lim⁡h→0q(h)=6\lim_{h \to 0} q(h) = 6 assert?

Question 3

What is the difference quotient of f(x)=x2f(x) = x^2 at a=2a = 2 with h=0.1h = 0.1?

Question 4

g(x)=x2−9x−3g(x) = \dfrac{x^2 - 9}{x - 3}. What is lim⁡x→3g(x)\lim_{x \to 3} g(x)?

Floating point and continuity

Question 5

g(x)=x2−9x−3g(x) = \dfrac{x^2 - 9}{x - 3} for x≠3x \neq 3, and g(3)g(3) is defined to be 5. Which is true?

Question 6

You want the best numerical estimate of the slope of ff at aa from a difference quotient in doubles. Which step size should you use?

Question 7

A car park is free for the first 15 minutes and costs 1.50 after that. Taking the time in minutes as mm, what is lim⁡m→15+charge(m)\lim_{m \to 15^+} \text{charge}(m), and what is charge(15)\text{charge}(15)?

Question 8

In a program using doubles, is 3.0 + 1e-17 == 3.0 true or false?

Question 9

Computing f(a+h)−f(a)h\frac{f(a+h) - f(a)}{h} in doubles, the answers stop improving below about h=10−8h = 10^{-8}. Why?

9 questions left to answer.