Matlab Question, Mechanical Engineering

help write the matlab code desired:
The sine function can be evaluated by the following infinite series as (where the angle x is given in
xsinx = x-(x^3)/3! + (x^5)/5! - (x^7)/7!....
(a) Create a function M-file mysin1 that takes the angle x (in degrees) and the number of terms n as
the input, and returns sin(x) as the output using n number of terms in the above expansion. Test
your function with x=1.53, and n=10.
(b)Create a second function M-file mysin2 that takes the angle x (in radians) and the significant
digits sigdig as the input, and returns sin(x) correct to sigdig significant digits as the output.  Test
your function to find sine of 2.24 correct to 14 significant digits.
Posted Date: 11/13/2012 9:07:21 PM | Location : United States

Related Discussions:- Matlab Question, Assignment Help, Ask Question on Matlab Question, Get Answer, Expert's Help, Matlab Question Discussions

Write discussion on Matlab Question
Your posts are moderated
Related Questions

Service and Maintenance Procedures, you have studied detailed procedure of motorcycle service and maintenance and points to be remembered while servicing. In the next course, you s

Determining the Number of Kanban Card Sets: Example: Determining the Number of Kanban Card Sets X automotive, a company that makes muffler assemblies for the Mangalore Mo

Normal 0 false false false EN-US X-NONE X-NONE

Torque of Multiple and Different Sized Fasteners: First tighten all fasteners by the help of free hand. Then torque big fasteners first followed by torque of smaller fasteners in

what is critical pressure, triple point, degree of super heat...

Energy - thermodynamics: The energy can be defined as the capacity of doing work. The energy possessed by system may be of two kinds. 1. Stored energy: for example potent

STATE - Thermodynamics: The State of system is its condition or configuration described in detail. State is the condition of the system which is identified by thermodynamic