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
Your team has been charged with creating the pumping and piping system to supply cool water to the condenser, E-310, for the newly installed distillation column T-304 running at 12

Q. Steam Generator Load Balancing? The pressure controller output is cascaded to individual stations, one for each boiler. These allow selective increase or decrease of the du


Q. Positive Material Identification Testing? Any physical evaluation or a test of a material to confirm that the material which has been or will be placed into service is consi

In most hardware stores, you can find what has known as a Heat Gun. Hold the heat gun about 6 inches away from the acrylic you intend on bending say the bumper on a car. They are p

WHICH IS THE BEST ONLINE MONITORING SYSTEM FOR GAS METAL ARC WELDING


Importance of stresses in shaft: What is  importance of stresses in shaft ? Sol.: In shaft the following significant stresses occur. 1. A maximum shear stress occurs on

engineering dynamics problems of kinetics of particle

METAL TRANSFER IN CO2 WELDING In CO 2 welding, two distinct types of metal transfers are identified viz. short circuiting transfer and free flight globular transfer. Short Cir