Matlab Question, Mechanical Engineering

Assignment Help:
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.

Related Discussions:- Matlab Question

Radiographic examination of welded joints, Q. Radiographic examination of w...

Q. Radiographic examination of welded joints? Radiographic examination (RT) of welded joints shall be performed as required by the Code. Acceptance criteria shall be in accord

Angle of projection, A ball is thrown from a point with a speed V  at an an...

A ball is thrown from a point with a speed V  at an angle of projection  θ . From the same point and  at the same instant, a person starts running with a constant speed V/2 to catc

Efficiency and mean effective pressure of a dual cycle, Draw TS and pv diag...

Draw TS and pv diagrams of a dual cycle. Why this cycle is also named limited pressure or mixed cycle ? Derive the mathematical expressions for the efficiency and mean effective pr

The linear dimension command, The Linear Dimension Command            ...

The Linear Dimension Command                                    You can use this command to generate horizontal and vertical dimensions.Creating a linear dimension is eas

Explain the effect of cutting speed, Explain the Effect of Cutting Speed ...

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

Can you explain limitations of eulers theory, (a) Can you explain limitatio...

(a) Can you explain limitations of Euler's theory (b) Derive a mathematical expression to determine the crippling load of a column with on end fixed and other end hinged (c)

What is the tessellated modellers, Tessellated Modellers    Solid Model...

Tessellated Modellers    Solid Modeling This describes a class of simplified boundary-representation modellers which approximate to curved faces by a number of plane faces. Sin

State the main advantage of using master pages, Problem: (a) InDesign ...

Problem: (a) InDesign is known as a common software for designers mainly used for publication of newspapers, magazines and other editorial design artworks. The Master page fe

Brinell hardness test, Brinel l Hardness Test: Insert the Ball of dia...

Brinel l Hardness Test: Insert the Ball of diameter D in ball holder of machine. Make specimen surface free from dust and dirt. Make contact between the surface and ball b

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd