Question: To accurately approximate sin x and cos x for inclusion in a mathematical library, we first restrict their domains. Given a real number x, divide

To accurately approximate sin x and cos x for inclusion in a mathematical library, we first restrict their domains. Given a real number x, divide by π to obtain the relation
|x| = Mπ + s, where M is an integer and |s| ≤ π/2.
a. Show that sin x = sgn(x) · (−1)M · sin s.
b. Construct a rational approximation to sin s using n=m=4. Estimate the error when 0 ≤ |s| ≤ π/2.
c. Design and implementation of sin x using parts (a) and (b)
d. Repeat part (c) for cos x using the fact that cos x = sin(x + π/2).

Step by Step Solution

3.44 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Since sin x sinM p s sin M p cos s cosM p sin s 1 M sin s we ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

731-M-N-A-N-L-A (800).docx

120 KBs Word File

Students Have Also Explored These Related Numerical Analysis Questions!