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
how to fraw a parabolla in parallelogram

Define Cases in which Automation is Done Automation is done in following cases:- a) Loading and unloading of parts. b) Automatic production lines. c) Automatic tool ch

Q. Inspection and testing for coating application? The Applicator shall perform all inspection and testing necessary to assure that the surface preparation and coating applicat

Q. What do you mean by Contractility? Heart being a muscular pump the ability to eject blood depends on the ability to contract. Another factor is the resistance in the vascula


Suspension System, Wheels and Tyres:  There are numerous types of suspensions for connecting the wheels to frame body. The suspension plays the vital role in handling and driving



Time and Cost Analysis This discusses about certain basic activities that must be carried out in a factory to convert raw materials into finished products. These activities br

These are differentiated from hoists by the fact that the operator rides with the load. There are many different types of drives for such elevators but in general electric