Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB An active area of research is forensic entomology, i . e . the application and study of insect and other arthropod biology to crime

MATLAB

An active area of research is forensic entomology, i.e. the application and study of insect and other arthropod biology to crime scene investigations. The presence, growth, and development of insects and arthropods can be used to date crime scenes. An important consideration in this field is the temperature of a body, since temperature is a driving factor in the developmental cycles of most insects and arthropods. Techniques such as Newton's Law of Cooling can be used as a first order approximation of the object's temperature. Let's examine how Newton's Law of Cooling works using a cup of coffee as a convenient object of study.

Assuming a constant ambient temperature (i.e. the temperature of the environment), Newton's Law of Cooling is given as

image text in transcribeddT0dt=K(TAT0) (6)

where image text in transcribedTA is the ambient temperature, image text in transcribedT0 is the initial temperature of the object of interest, image text in transcribedK is a proportionality constant, and image text in transcribedt represents time. Eqtn. 6 is a separable differential equation. Solving Eqtn. 6 using the basic techniques of calculus yields

image text in transcribedT(t)=TA+(T0TA)eKt (7)

where image text in transcribedT(t) is the temperature of the object of interest at time image text in transcribedt.

Consider the following:

A cup of coffee is made at exactly 12:00 p.m. (noon).

The temperature of the room the coffee cup is in is 68.0 F.

After two minutes, the coffee has cooled from an initial temperature of 180 F to a temperature of 165 F.

For this problem, complete the following:

Calculate the proportionality constant image text in transcribedK by hand. There is no need to turn in your written work for this; instead, you will use this information for the rest of the problem. Strictly speaking, it does not matter what unit set you use for image text in transcribedK, but as a practical matter for the other parts of this problem you may find it advantageous to calculate image text in transcribedK in terms of sec-1.

Using the calculated proportionality constant:

Part 1

Create an array of time values ranging from image text in transcribedt = 0 sec to image text in transcribedt = 18,000 sec in steps of 1 sec. Using a vectorized operation, calculate an array of coffee temperatures that correspond to the given times. You may not use loops to accomplish this.

Part 2

Calculate an array of temperature values one at a time using a loop. You may not use vectorized techniques to accomplish this. Note that you should get the same result for both approaches (1) and (2); if not, a mistake was made in one (or both) approaches. Use this information to check your work.

Part 3

Using either your results from Part 2(1) or Part 2(2), plot the temperature history vs. time. (If you completed Part 2 correctly, the results should be identical anyway.) Be sure to include a title, image text in transcribedx-label, and image text in transcribedy-label on your plot. Make your line a cyan dotted line, with square data markers.

Part 4

Experiment with the time step size, allowing the time step to become larger and smaller. Calculate the wall time (i.e. the "real time") for runs of both the vectorized and loop-based approaches as you vary the time step size. Is one approach faster than the other? Does it depend on how big the data set is? Leave code for at least three numerical experiments in the project file you submit for a grade, but feel free to explore more scenarios than this. Print your responses to these questions to a data file located on the desktop of the machine you are using; be sure to close that file when you are done. (When we grade your code, we will check to make sure this process would work for you on your machine, even if the file system on your machine does not match the file system on our own machines.) When you consider your responses, please remember that MATLAB's loop performance has improved over the years, so be sure to report what you actually observe; offer your reasoned explanation for why you are seeing what you are seeing.

dt

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

6. What is process reengineering? Why is it relevant to training?

Answered: 1 week ago