174k views
2 votes
Among the following two algorithms, which is the best for evaluating f(x) = tan(x) - sin(x) for x ∼ 0? Briefly explain.

(a) (1/cos(x)−1) sin (x),
(b) tan (x) sin^2 (x) / (cos(x) + 1).

1 Answer

5 votes

Answer:

Option B: tan (x) sin^2 (x) / (cos(x) + 1). is best.

Following is attached the image describing the reason or choosing option B.

Step-by-step explanation:

Among the following two algorithms, which is the best for evaluating f(x) = tan(x-example-1
User Willpnw
by
3.1k points