Homework
Math 2984 - Fall 2017
Intro to Mathematical Problem Solving
-
HW001: Estimate the square root of 2017:
-
HW002: Report circle closest in area to a given square:
-
HW003: Evaluate a formula for water density as a function of temperature:
-
HW0035: Evaluate a formula for the normal probability function:
-
HW004: Evaluate a formula estimating the weight of a child given its age.
-
HW005: Evaluate a formula involving fractions.
-
HW0055: Evaluate an 8 digit binary number, using IF().
-
HW006: Given 3 numbers, how many are distinct?
Use IF/ELSE.
-
HW007: Given 3 numbers, can they represent the sides of a triangle?
Use IF/ELSEIF/ELSE and a Boolean variable.
-
HW008: For I from 0 to 10, print I, square of I, square root of I,
using a FOR loop.
-
HW009: For I from 100 to 200, sum the square of each I,
using a FOR loop.
-
HW0091: Using a FOR loop and the RAND function, estimate the
average distance between two random points in the unit square.
-
HW0092: Using a FOR loop and the RAND function, estimate the
probability that a "random" quadratic equation will have real roots.
-
HW010: Print the first 100 prime numbers, using a WHILE loop
and ISPRIME().
-
HW011: Print integers 123 UP to 255 by 17's, then 255 DOWN to 123 by 17'2,
using FOR loops with an increment.
-
HW0115: Every year 30% of Californians move out, and 10% of US moves in.
-
HW012: Rewrite a positive number x in scientific notation, using WHILE loops.
-
HW013: Print factors of an integer, using a WHILE loop.
-
HW014: Print multiplication tables for numbers between P and Q,
using nested FOR loops.
-
HW015: Print a pyramid of stars using nested FOR loops.
-
HW016: Print a table of greatest common divisors for numbers between P and Q,
using nested FOR loops and the GCD() function.
-
HW017: What month does day N occur in? Use a vector of month lengths.
-
HW018: Compute a version of the Fibonacci sequence with different starting
values.
-
HW019: Compute a version of the Fibonacci sequence that adds the previous
three values.
-
HW020: Count the number of derangements, knowing the first two values
and a recurrence relation.
-
HW021: Count the number of subsets of size K from a set of size N,
using a recurrence relation.
-
HW022: Estimate the arithmetic-geometric mean using recurrence.
-
HW023: Estimate the area under y=humps(x) for x between 0 and 1,
using a FOR loop.
-
HW024: Estimate the probability that calling rand() three times
gives us three numbers that could be the lengths of the sides
of a triangle.
-
HW025: Estimate the probability that breaking a unit stick
in two random places gives us three pieces that can form
a triangle.
-
HW026: Given a Month/Day date like 4/10, return the
number of days since the beginning of the year.
You need a vector to store the length of each month.
-
HW027: Estimate the value of an alternating infinite
series with monotonically decreasing entries, using WHILE.
-
HW028: Pay your grocery bill at the automatic checkout, using WHILE.
-
HW029: Approximate the golden ratio, by computing entries in a
sequence, until the difference between two consecutive entries is
small enough.
-
HW030: If a penny is dropped down a well that reaches the center of
the earth, when will it hit the bottom?
-
HW031: In what year will the population of reporters be smaller
than the population of wind turbine technicians?
-
HW032: When will a typical child weigh more than 1000 pounds,
according to the Theron formula?
-
HW033: Create a plot of 24 values that record monthly transatlantic
air traffic from January 1949 to December 1950.
-
HW034: Create a plot that shows the first five Chebyshev polynomials
of the second kind.
-
HW035: Create a plot of the letters "VT", joined or separate,
and filled in with a color.
-
HW036: Draw a checkerboard.
-
HW037: Draw a face using filled ellipses.
-
HW038: Write a function to compute the perimeter of a triangle.
-
HW039: Write a function to shrink a triangle by a factor s.
-
HW040: Write a function to compute the area of a quadrilateral,
using a function that computes the area of a triangle.
-
HW041: Write a script that seeks a zero of the Wallis function
y=x^3-2x-5..
-
HW042: Write a script that seeks three zeros of the cubic function
y=816*x^3 - 3835*x^2 + 6000*x - 3125.
-
HW043: Write a script that determines the value of the golden
ratio by seeking a solution of the equation x=1/(1+x).
-
HW044: Write a function that uses logical vectors and find()
to analyze a vector.
-
HW045: Write a function that estimates how many times a random
walk will visit the square labeled 0.
-
HW046: Write a function that tracks the frequency of each possible
score when tossing N dice M times and creates a bin plot of the results.
-
HW047: Read a PNG file containing a grayscale image
of Saturn, change to white all the pixels in a
5-pixel wide strip along the border of the image,
and save the modified image to a JPG file.
-
HW048: Read a PNG file containing a grayscale image of
a scene from the movie "Casablanca";
copy Ingrid Bergman's head and use it to replace
the heads of Humphrey Bogart and Dooley Wilson;
save the image as "bergman3.jpg".
-
HW049: Read a JPG file which is a photograph of a person. Make a new
JPG file which only displays pixels that closely match a particular shade.
-
HW050: Create a contour plot of a function that represents a "valley".
-
HW051: Create a surface plot of a function that exhibits four
deep depressions.
-
HW052: Use the contour() function to draw a family of ellipses.
-
HW053: Compute the cumulative probabilities for an event with
outcomes that have unequal likelihoods.
-
HW054: Use a transition model to simulate how 800 students shift
between three dormitories.
-
HW055: Use a transition model to simulate how 1000 customers switch
car insurance policies each year.
-
HW056: Read a list of edges describing a graph and create a
corresponding adjacency matrix.
-
HW057: Using the RISK adjacency matrix, determine the maximum distance
from Western Australia to any region on the game board.
-
HW058: Fill out the SPOT survey for our class.