Numerical Computation Assignment 1
1. Find the binary representation of the base 10 numbers.
- (a)
- (b)
- (c)
- Integer part
- Fractional part
(cycle repeats: )
- Integer part
2. Convert the following binary numbers to base 10.
- (a)
- (b)
- (c)
- Integer part
- let
, then , so ,
- Integer part
3. Explain how to most accurately compute the two roots of the equation , where is a number greater than 100.
The standard quadratic formula gives two roots:
Calculate the numerically stable root (the one with the large magnitude) using the standard formula. This involves an addition of like-signed numbers, which is stable.
Use Vieta's formula for the product of roots
4. Evaluate the quantity where , correct to at least 3 decimal places.
This simplifies to a numerically stable form:
Now, substitute
Correct to at least 3 decimal places, the answer is
5. Find the rates of convergence of the following sequences as .
- (a)
For
We use the Taylor series approximation
The rate of convergence is
- (b)
For
We multiply by the conjugate to simplify the expression:
For large
The rate of convergence is
6. Let , find satisfying the Mean Value Theorem for on the interval .
The Mean Value Theorem states that if a function
Here, we are given:
The function
The interval
Now, plug these values into the formula:
Now, evaluate the derivative at
The value
Thus, the value of
7. Let , , find satisfying the Mean Value Theorem for integrals with , in the interval .
To find
For
The integral of
Use integration by parts with
Evaluating from 0 to 1:
Substitute the integrals into the theorem:
Solving for
8. Find the Taylor series generated by about .
Of course. We can find the Taylor series for
The formula for a Taylor series generated by a function
In our case,
We need to find a pattern for the nth derivative,
Observing the pattern, the nth derivative is:
Substitute
The general term for the nth derivative evaluated at
So the series is:
9. Find the degree 4 Taylor polynomial for centered at the point . Estimate the maximum possible error when using to estimate for .
The formula for the n-th degree Taylor polynomial of a function
Now, substitute these values into the Taylor polynomial formula:
The degree 4 Taylor polynomial for
The formula for the Lagrange Remainder is:
where
In our problem, the parameters are:
Function:
Polynomial degree:
Center:
Interval for estimation:
We are finding the remainder for the degree 4 polynomial,
We need to calculate the 5th derivative of
Now, substitute this derivative back into the expression for the remainder:
The error is the absolute value of the remainder,
To maximize this expression, we find the maximum value of each component in the numerator:
- Bound for
:
By definition,
- Bound for
:
On the given interval
Maximum Error
Maximum Error
The maximum possible error when using