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

At site locations, the WorleyParsons QC Specialist (QCS) is responsible to verify that the requirements for PMI as specified in the purchase order/subcontract documents are impleme


inert gas is ionizing in tig and mig,plasma arc welding processe.but it is impossible to react with inert gas


Applications and Disadvantages of Electro Chemical Machining Disadvantage of Electro Chemical Machining 1. The tools are more difficult to design. 2. Initial cost is hi

Evaluatio n of the Internal Energy of Steam: It is actual heat energy stored in steam above the freezing point of water. We know enthalpy = internal energy + pressure ener

Computer systems to plan manage, and control the operations of a manufacturing plant through either direct or indirect computer interface with the plants production resource

Question 1: There are different devices which may be used to attract the attention of the customers and persuade them to purchase merchandise. a) Make a list of at least te

formulae for finding gross torque developed by the armeture