Executive Solution Overview
The inverse tangent of a number x > 1 can be approximated by the series tan-1(x) ≈ + NX(-1)n+1. (1)π 2 n =0 (2n + 1)x2n+1 Write a Matlab function myAtan that takes as input x and the number N and outputs as y the estimate of tan-1(x) using Eq. (1) and the corresponding true relative error tre. For t…
Instant Solution Download
$6.99Immediate access to the full model answer, formatted citations, and rubric breakdown.
Need a Fresh Custom Paper?
Have this question answered from scratch according to your specific instructions and deadline.
Order on TutorsGallery →Assignment Prompt & Instructions
The inverse tangent of a number x > 1 can be approximated by the series
tan-1(x) ≈ + NX(-1)n+1. (1)π 2
n =0
(2n + 1)x2n+1 Write a Matlab function myAtan that takes as input x and the number N and outputs as y the estimate of tan-1(x) using Eq. (1) and the corresponding true relative error tre. For the true value of tan-1(x) use Matlab’s build-in function atan(x) here and in the following problems. Code the function such that it can handle both scalar and column vector inputs for x, resulting in scalar, respective column vector outputs for y and tre. If any of the values for x are x ≤ 1, i.e., Eq. (1) is not applicable, call Matlab’s error function and output an appropriate error message. Do not print any results to screen or do any plotting within the function.
\
q2exam1.png](https://www.sweetstudy.com/files/q2exam1-png "q2exam1.png")
\
q2exam1.png](https://www.sweetstudy.com/files/q2exam1-png-10372005 "q2exam1.png")
**matlab code**
NOT RATED
Purchase the answer to view it

q2exam1.png

plagiarism checkPurchase $5
01. [Applied Sciences](https://www.sweetstudy.com/fields/applied-sciences)
02. [Architecture and Design](https://www.sweetstudy.com/fields/architecture-and-design)
03. [Biology](https://www.sweetstudy.com/fields/biology)
04. [Business & Finance](https://www.sweetstudy.com/fields/business-finance)
05. [Chemistry](https://www.sweetstudy.com/fields/chemistry)
06. [Computer Science](https://www.sweetstudy.com/fields/computer-science)
07. [Geography](https://www.sweetstudy.com/fields/earth-science-geography)
08. [Geology](https://www.sweetstudy.com/fields/earth-science-geology)
09. [Education](https://www.sweetstudy.com/fields/education)
10. [Engineering](https://www.sweetstudy.com/fields/engineering)
11. [English](https://www.sweetstudy.com/fields/english)
12. [Environmental science](https://www.sweetstudy.com/fields/environmental-science)
13. [Spanish](https://www.sweetstudy.com/fields/foreign-languages-spanish)
14. [Government](https://www.sweetstudy.com/fields/government)
15. [History](https://www.sweetstudy.com/fields/history)
16. [Human Resource Management](https://www.sweetstudy.com/fields/human-resource-management)
17. [Information Systems](https://www.sweetstudy.com/fields/information-systems)
18. [Law](https://www.sweetstudy.com/fields/law)
19. [Literature](https://www.sweetstudy.com/fields/literature)
20. [Mathematics](https://www.sweetstudy.com/fields/mathematics)
21. [Nursing](https://www.sweetstudy.com/fields/nursing)
22. [Physics](https://www.sweetstudy.com/fields/physics)
23. [Political Science](https://www.sweetstudy.com/fields/political-science)
24. [Psychology](https://www.sweetstudy.com/fields/psychology)
25. [Reading](https://www.sweetstudy.com/fields/reading)
26. [Science](https://www.sweetstudy.com/fields/science)
27. [Social Science](https://www.sweetstudy.com/fields/social-science)
28. [Liberty University](https://www.sweetstudy.com/note-bank/liberty-university)
29. [New Hampshire University](https://www.sweetstudy.com/note-bank/southern-new-hampshire-university)
30. [Strayer University](https://www.sweetstudy.com/note-bank/strayer-university)
31. [University Of Phoenix](https://www.sweetstudy.com/note-bank/university-of-phoenix)
32. [Walden University](https://www.sweetstudy.com/note-bank/walden-university)
– [Home](https://www.sweetstudy.com/)
– [Homework Answers](https://www.sweetstudy.com/homework-answers)
– [Archive](https://www.sweetstudy.com/archive)
– [Tags](https://www.sweetstudy.com/tag-cloud)
– [Reviews](https://www.sweetstudy.com/reviews-page)
– [Contact](https://www.sweetstudy.com/contact-us)
Leave a Reply