Docsity

Homework in Scientific Computing with Maple: Number Theory and SIR Model Analysis - Prof. , Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
CS 340 – Introduction to Scientific Computing
Homework #2: Maple
Due by 5 p.m. Tuesday, February 27th, 2007
Purpose of the Project:
This project was designed to make sure each student is well versed in Maple, and is able to use
Maple to solve problems and form conjectures. Features that will be focused on include:
•graphing functions of one or two independent variables,
•solving equations with solve and/or fsolve,
•differential equations functionality, and
•number theory functionality
1. Number Theory
Use the techniques discussed in the Number Theory portion of our Maple excursions to help
you answer the following questions:
(a) [8 points] Twin primes are primes that differ by 2. The numbers 3 and 5 are twin
primes. Identify the number of twin primes less than 2011, our next prime year. (Nothing
sophisticated here ... generate the primes and visually see how many pairs are twin primes.
Note, the sequence 3, 5, 7 generates two twin primes (3 and 5) and (5 and 7).)
(b) [8 points] Determine a conjecture about the digit in the “ones” place of the number
2k, relative to the value of k. Are there any other single digit bases that we can make
similar conjectures about? Explain your reasoning based on your Maple simulations and
experiments. 1
(c) [9 points] Determine a conjecture about the number of zeros at the end of m! (factorial)
based on the value of m.
What to submit
Submit:
•Your (separate) Maple worksheet you used to generate your illustrations and your calcu-
lations.
•Your answers to the above questions, written in L
A
T
E
X and including the necessary illus-
trations, explanations, and conclusions.
1Based on a problem from the Spring 2005 NCCTM Mathematics Contest.
pf3
pf4

Partial preview of the text

Download Homework in Scientific Computing with Maple: Number Theory and SIR Model Analysis - Prof. and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

CS 340 – Introduction to Scientific Computing

Homework #2: Maple

Due by 5 p.m. Tuesday, February 27th, 2007

Purpose of the Project: This project was designed to make sure each student is well versed in Maple, and is able to use Maple to solve problems and form conjectures. Features that will be focused on include:

  • graphing functions of one or two independent variables,
  • solving equations with solve and/or fsolve,
  • differential equations functionality, and
  • number theory functionality
  1. Number Theory

Use the techniques discussed in the Number Theory portion of our Maple excursions to help you answer the following questions:

(a) [8 points] Twin primes are primes that differ by 2. The numbers 3 and 5 are twin primes. Identify the number of twin primes less than 2011, our next prime year. (Nothing sophisticated here ... generate the primes and visually see how many pairs are twin primes. Note, the sequence 3, 5, 7 generates two twin primes (3 and 5) and (5 and 7).) (b) [8 points] Determine a conjecture about the digit in the “ones” place of the number 2 k, relative to the value of k. Are there any other single digit bases that we can make similar conjectures about? Explain your reasoning based on your Maple simulations and experiments. 1 (c) [9 points] Determine a conjecture about the number of zeros at the end of m! (factorial) based on the value of m.

What to submit Submit:

  • Your (separate) Maple worksheet you used to generate your illustrations and your calcu- lations.
  • Your answers to the above questions, written in LATEX and including the necessary illus- trations, explanations, and conclusions.

(^1) Based on a problem from the Spring 2005 NCCTM Mathematics Contest.

  1. The Two Towers Let α, β and γ denote the 1 st, 2 nd^ and 6 th^ integers in your social security number. After years of constant civil war, the small (imaginary) Eastern European country of Tolkeinia is experiencing a period of relative calm. The country’s infrastructure is non-existent. Assisted by the United Nations, Tolkeinia is in the process of re-establishing a telecommunications network. Due to the ruggedness of the terrain, and cost considerations, the government has decided to develop a wireless communications network. This requires the positioning of transmitting and repeater towers through the country. Amazingly, the country is semi- elliptical in shape, and satellite data has been interpolated to obtain elevation profiles for the land. Your company has been contracted to analyze the data and suggest appropriate locations for two towers. Due to economic development considerations these towers need to be distributed throughout the country. Assume that the vertical elevation (in feet above sea level) is given by:

h(x, y) = 10 .α ∗

( x^3 + y^5 + x 5 .β

) ∗ exp(−x^2 − y^2 ) + exp(−(x − 1)^2 − y^2 ) 3 .γ

for 0 ≤ x^2 + 2y^2 ≤ 9 , y ≥ 0 (2)

This portion of the project should be treated as a report to your supervisors. Be very thorough in your work, giving sufficient evidence supporting your work (including graphs of surfaces and functions). Make sure that your explanations are clear and concise, and provide enough information for your supervisor to follow your work. Be certain to include the following in your report to your supervisors:

  • Present several (at least two) different views of the surface [Hint: Due to the elliptical domain, it is probably best to convert to cylindrical coordinates when plotting the surface.]
  • Include a contour plot of Tolkeinia.
  • Locate the interior maxima and minima. Hint: Critical points for functions of two variables are found when the first partial derivatives are equal to zero at the same time. For example, f (x, y) has critical points where ∂f ∂x = 0 and ∂f ∂y = 0 at the same time.
  • Check for maxima and minima on the boundary. Hint: First find equations for each boundary. These will equations in terms of x and/or y. Solve for one of the variables. Substitute this equation in for that variable in 1 to find the equation of the surface at the boundary.
  • Discuss and justify your recommendations for the locations of the towers in Tolkeinia. What to submit Submit:
  • [15 points] Your (separate) Maple worksheet you used to generate your illustrations and your calculations.
  • [15 points] Your project report to your supervisors, written in LATEX and including the necessary illustrations, explanations, and conclusions.

ii. [8 points] With your original transmission coefficient, α, and 499 initial susceptibles, use Maple to sketch the time dependent plots for S(t) and I(t) for 0 ≤ t ≤ 50. Compare your results in terms of S(t), and I(t) to the results for the original model in 3a where there was no way to become susceptible again. Is this what you expect? Explain.

What to submit Submit:

  • Your (separate) Maple worksheet you used to generate your illustrations and your calcu- lations.
  • Your answers to the above questions, written in LATEX and including the necessary illus- trations, explanations, and conclusions.

Just a note: If you would like to copy text from your Maple worksheet into your LATEX document, it is easiest to nest this between a \begin{verbatim} and \end{verbatim} statement.