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

Beee, Explain the construction and principles of operations of induction mo...

Explain the construction and principles of operations of induction motor

Projectles on an inclined plane, a misile is fired at speed v and an angle ...

a misile is fired at speed v and an angle m that is inclide at an angle r to the horizontal.calculate the range

Numerical problems based on overhanging beam, Numerica l Problems Based on...

Numerica l Problems Based on Overhanging Beam: Q: Draw Shear force diagram for the simply supported beam loaded as shown in the figure given below. Sol.: Let the

Corporate level - safety organization, Corporate level - Safety Organizatio...

Corporate level - Safety Organization This is a corporate level and there should be a company director which is engaged in formulating safety policies at corporate level. The

What are the points importants during forging design, What are the points t...

What are the points that should be kept in mind during forging design? Some of the points which must be followed while forging design are: > A radial flow of fibers or grain

Tropical geometric information of solids, Tropical geometric information of...

Tropical geometric information of solids A face is surrounded by a set of vertices. Using the right-handed rule, the ordering of these vertices for describing a particular face

Machine dynamics, do you help me with an assignment in machin dynamics whic...

do you help me with an assignment in machin dynamics which need a solid works program and CAD prototype

Forces, what are the practical applications and use of finding uniform dist...

what are the practical applications and use of finding uniform distributed load, concentrated point load, inclined point load, roller supported beam.

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