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
WHAT IS LOAD CARRYING CAPACITY ISMB 250 OF 1.2 MTR LENGTH. PL REPLY

Q. What is Hot extrusion? Hot extrusion is a hot working process, which means it is done above the material's recrystallization temperature to keep the material from work harde

Frames: You have been introduced to the analysis of frames. By going through this unit, you may identify frames and differentiate them from trusses. The method for analyzing f

which are the different types of molding sands?explain each

Casting processes Casting processes. Here, the metal in the molten state is poured into a mould and allowed to solidify into a shape. The mould may be expendable or permanent.

Power metallurgy is much faster production whereas holding closer sizes.



A helical compression spring prepared of oil tempered carbon steel, is subjected to a load which goes from 600 N to 1600 N. The spring index is 6 and the design factor of safety is

Steam engines: Steam engine is heat engine which converts heat energy to mechanical energy. The pressure energy of steam acts on piston and piston is moved to and fro in a cyl