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
Determine the enhance in volume of the vessel: A thin spherical vessel of diameter 800 mm and thickness 6 mm is filled through a liquid at an internal pressure of 1.5 N/mm 2 .

Q. can you explain Shell molds? These molds are prepared by pouring a mixture of sand and thermosetting resin over the heated surface of a metallic pattern, which results into

Q.  An I section has dimensions Top flange = 8 cm × 2 cm; Bottom flange = 12 cm  × 2 cm; Web = 12 cm × 2 cm; Over all the depth of section = 16 cm. Determine M.I. of  I s

Explain the Effect of Cutting Speed Increase in cutting speed improves the surface finish due to the continuous reduction in built up edge. The curve a represents the machining

how is angular shear stress distributed in between two stanchions


explain wedge friction?with simple example? solve any simple problem in wedge friction

A machine having a mass of 100 Kg and supported on springs of total stiffness 7.84 x 105 n/m has an unbalanced rotating element which results in a disturbing force of 400 N at a sp

RECTIFIER TYPE POWER SOURCES The next popular power sources are of rectifier type. Three phase transformer (step down) connected to a rectifier to give DC output is the simple

What is The Tunnel Diode and the Current Regulator Diode?