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

Files tool and equipment , Files: Files are used to remove excess metal by...

Files: Files are used to remove excess metal by cutting action. These can be classified according to their length, shape, cross-section.

Current-fundamentals of electricity , Fundamentals of Electricity Cu...

Fundamentals of Electricity Current: The flow rate of charge or electrons with respect to time is known as current. It is measured in ampere (A).

Safety in tig welding-radiation energy hazard, SAFETY IN TIG WELDING-Radiat...

SAFETY IN TIG WELDING-Radiation Energy Hazard Radiant energy may cause injury to the welder in two areas, eye and the skin. Any personnel, whether the welder, inspection person

Explain match plate pattern, Match plate pattern These are extensions o...

Match plate pattern These are extensions of the previous type. Here the cope and drag patterns along with the gating and the risering are mounted on a single matching metal or

#strength of materials., derivation of elongation of bar due to its self we...

derivation of elongation of bar due to its self weight

Combined rules- priority rules-conventional priority rules, Combined Rules ...

Combined Rules           MOD (modified operation due date)                                 PN j = max (t + o j , t dj ) (SPT-Tr) (Truncated SPT)

Objectives-object-oriented control architecture , Objectives After stud...

Objectives After studying this section, you should be capable to understand: Cell control and modeling, Context level data flow diagram, A common cell control sy

Thermodynamics, when does water convert in to ice at vaccum pressure

when does water convert in to ice at vaccum pressure

Thermodynamics, Convert the following readings of pressure to KPa absolute,...

Convert the following readings of pressure to KPa absolute, assuming that the barometer reads 760mm Hg: (a) 100 psig, (b) 8in. Hg vacuum, and (c) 76in Hg gage.

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