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
Calculating the number of kanban card sets: A hospital desires to set up a Kanban system to manage its supply of blood with the regional blood bank. The regional blood bank tr

Classification Based on Mode of Welding Manual welding: In this welding the entire welding operation is performed and controlled by hand. Here, there are two movements involv


Kennedy theorem

Open cover left crank case and check shifter drum bolt and washer: Check shifter drum bolt torque and washer direction and avail ability.

Q. Show the Vessel Supports? Approved materials and allowable stresses, shall be used for vessels and their supports. For structural shape support members in compression, wh

#wHAT WILL BE THE PULLEY CRITERIA TO DECIDE THE RPM

Q. Patching touch up stick? Pipe requiring limited coating repair resulting from scars, slivers, holidays, etc. shall be repaired by an OWNER approved patching system. The amou

WELD PREPARATION: Joint Tolerance & Cleaning   Joint Tolerance The allowable tolerance of joint dimensions depends upon whether the welding is to be done manually or

Problem Type Aforementioned illustration relates to the class of non-cyclic scheduling problems characterized via the subsequent features. (a) The Flexible Manufacturing Sys