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
radians):
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
Q. Explain about Active Fire Protection? Active Fire Protection - A fire fighting system that is normally dormant and is activated automatically upon detection of a fire hazard

Kinematics: This is that branch of Theory of Machines that deals with the relative motion among the several machine parts; without referring forces or torques that cause motion.


I would like a help for my fluid mechanics assignment

TYPES OF TOOL AND EQUIPMENT: We can classify the required tools and equipment into following four categories to understand their uses : General tools, Measuring equipm

How is works watery flayer?

CO 2 Gas Supply The CO 2 shielding gas is supplied cylinders at high pressure (140 kg / cm 2 ). Therefore pressure regulator and flow meter are connected to reduce the pressu

Over-Hanging and Cantilever Beam: Over-Hanging Beam: The beams on which one end or both ends are overhang are called as overhanging beam. 3. Cantilever Beam:


Beam: Sol.: A beam can be defined as a structural element which has one dimension (length) considerable larger As compared to the other two direction, which is breadth an