Question: Problem 2 ( USE Matlab ) Equation ( 1 ) is only valid when | x | 1 . If you wanted to write your

Problem 2(USE Matlab)
Equation (1) is only valid when |x|1. If you wanted to write your own arctan function, how
would you handle the case |x|1? Please do the following:
Use trig identities to derive this expression relating arctan(x) to arctan(1x) :
arctan(x)=+--arctan(1x)
Useful trig identities can be found on the DLMF, in particular equations 4.23.9 and 4.23.18.
Make careful note of the signs of the input and how they affect equation (2). Hand in your
derivation.
Now write a program called "my_arctan" which accepts a real input x. Check the value of x
and if |x|1 then just invoke the series summation directly by calling arctan_series.
Otherwise use equation (2) to transform the input before calling arctan_series. Again, test your
implementation against Matlab's atan(x).
 Problem 2(USE Matlab) Equation (1) is only valid when |x|1. If

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!