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
Forces working on sphere: Let a sphere of mass m, suspended by means of a string, resting against a smooth wall, as illustrated in Figure (a). What are the forces working on i

Complete outer clutch lugs for deep cuts : Visually check for any deep cuts formed on the outer complete clutch lugs.


CO2 Welding CO2 Welding is a variation of GMAW. Here the inert gas is replaced by gas mixtures or carbon dioxide, which are chemically active. The carbon dioxide decomposes in

Stress strain curves for the brittle materials: Stress strain curves for the brittle materials : Materials which show small elongation before they fracture are called as br

A new high temperature alloy has been developed with creep properties as follows: stress exponent, m = 4.5, activation energy, Q = 110,000 J/mol and pre-exponential constant,

For an automotive component of your choice that is traditionally metallic, review how it could be re-engineered as a composite? How factors such as fibre & matrix type, fibre volum

Provide the various considerations to be taken in designing the cast iron housing for a heavy duty machines?

Planning A New Airport: Elements of Airport Planning The elements of planning for a new airport are : (a)        Demand Forecast (b)       Site Selection (c)