Assignment10-2010

Assignment10-2010 - ChE 263 Assignment #10 (VBA HW#5) The...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ChE 263 Assignment #10 (VBA HW#5) The reading assignment is chapters 9 of the Chapra Text (5.5 pgs). 1. (Competency 5.4 - 60 points) The infinite series for the cosine of x is cosሺݔሻൌ ෍ሺെ1ሻ ݔ ଶ௜ ሺ2݅ሻ! ௜ୀ଴ Or, in the expanded form, cosሺݔሻ ൌ ݔ 0! ݔ 2! ݔ 4! ݔ 6! ൅⋯ Write a function entitled Cosine , that uses this formula to calculate the value of cosine of x, given x and the number of terms, n. The function will call subroutine CosEvaluate that will complete the calculation and will use the following code: This function accepts x and the number of terms desired ( n ) and returns the estimate of cos(x) . Use a For/Next loop to calculate the series. In a worksheet entitled “Problem 1”, test the convergence of the series as a function of n and determine how many terms are necessary for an accuracy of 10 -6 when x is π /2, π /6, π /3, and π . 2.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Assignment10-2010 - ChE 263 Assignment #10 (VBA HW#5) The...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online