MCEN_3030_Computational_Methods___HW_3_Fall_2022
.pdf
keyboard_arrow_up
School
University of Colorado, Boulder *
*We aren’t endorsed by this school
Course
3030
Subject
English
Date
Dec 6, 2023
Type
Pages
8
Uploaded by EarlChimpanzee3848
MCEN 3030 Computational Methods - HW 3 SOLUTIONS - Fall
2022
Prof. MacCurdy
Submission Deadline: September 23rd 2022, Friday @ 11.59pm
Submission Guidelines:
Follow the homework format and submission instructions in the Syllabus and on
the course Canvas site! Read all questions carefully and answer all questions. When in doubt, provide more
information rather than less.
Question 1
Determine the
Highest Real Root
of
f
(
x
) =
x
3
−
6
x
2
+ 11
x
−
6
.
1:
1. (10) Graphically. Use MATLAB. Include a plot in your submission.
(a)
Full Points:
Correct answer (3.04) and code
(b)
0.75x Points:
Incorrect answer with correct code
(c)
0.5x Points:
Incorrect answer with error in code
(d)
0.25x Points:
Incorrect answer with major error in code
(e)
0 Points:
Incorrect answer/No Attempt
2. (10) Using Fixed-Point Iteration until the approximation error falls below 0.1%. Use an initial value for
x
i
(ie.
x
0
) of 2.9. Generate and submit a table with 2 columns and n rows (where n is the number of total
iterations). Your table should have these columns:
{
iteration number (
i
),
x
i
}
1
(a)
Full Points:
Answer converges to 3.04 by the 12th iteration within good error ( 0.0010 at final
iteration)
(b)
0.75x Points:
Incorrect answer with correct code OR Correct answer but no tables given
(c)
0.5x Points:
Incorrect answer with error in code
(d)
0.25x Points:
Incorrect answer with major error in code
(e)
0 Points:
Incorrect answer/No Attempt
3. (10) Using Newton-Raphson Method (6 iterations MAX,
x
0
=3.5). Generate and submit a table with 2
columns and n rows (where n is the number of total iterations). Your table should have these columns:
{
iteration number (
i
),
x
i
}
(a)
Full Points:
Answer converges to 3.04 by the 6th iteration
(b)
0.75x Points:
Incorrect answer with correct code OR Correct answer but no tables given
(c)
0.5x Points:
Incorrect answer with error in code
(d)
0.25x Points:
Incorrect answer with major error in code
(e)
0 Points:
Incorrect answer/No Attempt
4. (10) Using Secant method (6 iterations MAX,
x
−
1
=2.5 and
x
0
=3.5). Generate and submit a table with
2 columns and n rows (where n is the number of total iterations). Your table should have these columns:
{
iteration number (
i
),
x
i
}
2
(a)
Full Points:
Answer converges to 3.04 by the 6th iteration
(b)
0.75x Points:
Incorrect answer with correct code OR Correct answer but no tables given
(c)
0.5x Points:
Incorrect answer with error in code
(d)
0.25x Points:
Incorrect answer with major error in code
(e)
0 Points:
Incorrect answer/No Attempt
3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help