Assignment10-2010

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

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

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.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/08/2012 for the course CHEM 263 taught by Professor Bradbundy during the Fall '11 term at BYU.

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
Ask a homework question - tutors are online