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

unstable governors

Consider a trapezoidal channel with a bottom width of 4 m, side slopes of 3:1 (H:V), and a bottom slope of 0.002 that carries 50 cms. The channel has a Manning's roughness of 0.034



Explain a cone clutch. How this clutch is designed. It is needed to design a rigid type of flange coupling to connect two shafts. The input shaft transmits 37.5 kW power at 180

Magnetic Susceptibility and Ferromagnetic Substances: Magnetic Susceptibility: The magnetic susceptibility (c) of a substance is defined  as the ratio of the intensity of magn

How the boiler are classified? Sketch and define the babcock & Wilcox boiler and also Compare the water tube boiler and fire tube?

Improvement Of Existing Airport: The improvements that are usually needed for existing airports fall under the following categories : (a)        Extension of runway to acco