LaTeX and Calculator programming

Complete all of the problems and questions below. See submission information below.

Crossed ladder problem

Practice using LaTeX by posting a solution to the following problem.

Crossed ladders A narrow street is lined with tall buildings. The base of a 20 foot long ladder is resting at the base of the building on the right side of the street and leans on the building on the left side. The base of the 30 foot long ladder is resting at the base of the building on the left side of the street and leans on the building on the right side. The point where the two ladders cross is exactly 8 feet from the ground.

Approximately, how wide is the street (to the nearest tenth)? Justify your answer.

Riemann sums

Create a calculator program to estimate the area under a curve.

  1. Provide the code for a calculator program that could be used to calculate the Riemann sum:
    Inputs Function of x
    Lower bound of x
    Upper bound of x
    Output Estimated net area based on 3 equally spaced rectangles using "midpoints"
  2. Annotate your code by explaining each line of code that contains mathematics.
  3. Run your program for the instructor on the due date.

Discussion questions

Please answer the following.

  1. Provide at least two advantages of calculator programming.
  2. Provide at least two disadvantages of calculator programming

Challenge (+2 TP)

Extend the "Riemann sums" program to also compute Riemann sums for left endpoints and right endpoints.

Run your program for the instructor.


SUBMISSION

  1. Publish the assignment to your EduBlog by:
  2. By submitting the assignment, you acknowledge that all work is your own.

Scoring guide 20 TP

Crossed Ladders

  • Answer is correct (1 TP)

LaTeX is correctly used for _____ of the mathematical notation.

  • all (4 TP)
  • most (3 TP)
  • half (2 TP)
  • very little (1 TP)

Justification is clear and complete.

  • 4 TP
  • 3 TP
  • 2 TP
  • 1 TP

Riemann Sums

  • First test case runs correctly: polynomial function, positive bounds (1 TP)
  • Second test case runs correctly: polynomial function, negative bounds (1 TP)
  • Third test case runs correctly: trig function, +/- bounds in Radians (1 TP)

Code is included (2 TP)

_____ of mathematics formulas in the code are clearly explained.

  • All (4 TP)
  • Most (3 TP)
  • Half (2 TP)
  • Very little (1 TP)

Discussion

  • Completely addresses prompt #1 (1 TP)
  • Completely addresses prompt #2 (1 TP)

CHALLENGE

  • Riemann sum program also allows for "left endpoints" (+1 TP)
  • Riemann sum program also allows for "right endpoints" (+1 TP)

Points: 0