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
WELDING ARC PHYSICS Electric arc as an intense source of heat is employed in welding of materials. In the field of welding techniques, arc welding processes constitute a major po

Product life-cycle management: There have also been changes in the use of some pre-existing data formats. Open associations have been formed to encourage some formats to becom

Generation of steam at constant pressure: Steam is pure substance. Like any other pure substance it can also be converted into any of the three states, that is, solid, liquid

Q. Vessels resting on concrete foundations? For vessels resting on concrete foundations, the allowable concrete bearing stress shall be 750 psi (5 MPa). The design loadings fo

Determine the centroidal moment of inertia: Determine the centroidal moment of inertia of a thin flat disc shown in Figure which is having a mass m kg. By using the parallel a

Q. Corrosive properties of caustic? Sodium hydroxide, more commonly known as Caustic Soda or simply ‘Caustic', is widely used in the petrochemical industry to neutralize acidic


How do I solve this question? http://i195.photobucket.com/albums/z154/NanazRulez/20120802_155751.jpg

Evaluate the maximum bending stresses: A beam of I-section illustrated in Figure is simply supported over a span of 10 m. It carries an uniform load of 4 kN/m over the whole s