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
Lubrication Complaints If the engine oil level is too low, check for the following things: External oil leaks Worn out piston rings Worn out valve guide and/o

Dryness fraction measurement: Sensible Hea t of Water or Heat of Liquid or Enthalpy of Liquid (h) Sol.: It is quantity of heat which is required to raise unit mass

nc & cnc machines

Explain the Semi-Automatic Extension of screw conveyor "Semi-Automatic Extension of screw conveyor as per the screed width by telescopic-tube" Procedure: The extension of

Tensile strength: What will be its ultimate tensile strength? Solution The condition for necking is = n = 0.3077 Hence using this value of , the true stress at ne

An experiment to determine the convection coefficient associated with airflow over the surface of a thick stainless steel casting involves insertion of thermocouples in the casting

What will be the criteria to be looked into get the pulley rpm increase

Given:  A brittle material has an ultimate tensile strength of 300 MPa and an ultimate compressive strength of  -1000MPa.  Assume that failure can be represented by the Modified

Restricted Search over All Possible Scheduling All options to this approach aim to calculate a schedule for a specific number of operations and after that to schedule the initi

Engine oil level and viscosity : Ensure that the engine oil level is maintained till the upper mark on the gauge oil level. Check engine oil viscosity. Oil should not be abnormall