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
Direct Current Using direct current, the tungsten electrode may be connected to either the negative or the positive terminal of the supply of power. In almost all cases, ele

Determine Mean coil radius - close coiled helical spring:  A close coiled helical spring contains a stiffness of 1 kN/m in compression to a maximum load of 50 N and a maximum

derive an expression for the fundamental frequency of sound obtainable from a tube given diameter open at one end

what is surging ?


GMAW POWER SOURCE A power source wit h a flat characteristics is almost universally used for GMAW process as it provides self adjustment and stabilisation of the arc. Also it m

Corporate level - Safety Organization This is a corporate level and there should be a company director which is engaged in formulating safety policies at corporate level. The

To select the project, if not already done. Due to above Problem's in Hydrostatic sensor paver machine, now the select the project and solves the problems and also the cost eff


Determine the mean radius of an open coiled spring: Determine the mean radius of an open coiled spring of helix angle of 38 o , to give a vertical displacement of 20 mm and an