Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. What is the Maclaurin series for the function sin(x)? Please determine the minimum number of terms needed to compute sin(0.1) accurate to 12 decimal

1. What is the Maclaurin series for the function sin(x)? Please determine the minimum number of terms needed to compute sin(0.1) accurate to 12 decimal places (rounded), using a) Taylors theorem and b) alternating series theorem.

Show your work and justify your answers for the above problem. 2. Create two random matrices A and B each of size . Write a computer program in Java or Matlab to compute

a) D(i, j) = A(i, j) * B(i, j) for i = 1 n and j = 1 n, and

b) D(i, j) = (A(i,k) B(k,j)) =1 for i= 1 n and j = 1 n.

Use a timing function to report the execution time for the two computations using single and then double precisions. Report on the execution time of each run. Try n = 100 and 1000.

c) repeat the calculations in (a) and (b) above using Matlab. image text in transcribed

1. What is the Maclaurin series for the function sin(x)? Please determine the minimum number of terms needed to compute sin(0.1) accurate to 12 decimal places (rounded), using a) Taylor's theorem and b) alternating series theorem. Show your work and justify your answers for the above problem. 2. Create two random matrices A and B each of size n x n. Write a computer program to compute a) D(i, j) = A(i, j) * B(i, j) for i=1 ... n and j=1 ... n, and b) Di, j) = XR-1(Ai, k) * B(k,j)) for i=1 ... n and j = 1 ... n. Use a timing function to report the execution time for the two computations using single and then double precisions. Report on the execution time of each run. Try n= 100 and 1000. c) repeat the calculations in (a) and (b) above using Matlab

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

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

=+impact member states and MNEs?

Answered: 1 week ago