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

Bending equation, State and define the bending equation and mention it''s u...

State and define the bending equation and mention it''s units and derive it

Branches of mechanics, Branches of mechanics: Mechanics is basically d...

Branches of mechanics: Mechanics is basically divided in to two parts Static's and Dynamics, Dynamics is further divided in kinematics and kinetics Statics: It deals with

Material handling equipment, In selection of material handling equipment...

In selection of material handling equipment itself Hageman indicates that the final consideration are: 1. Methods of Installation: Operating controls should be accessibl

Reactions at point while the system is rotating, Reactions at point while t...

Reactions at point while the system is rotating: 8 kg ball is mounted on a horizontal bar associated to a vertical shaft. Neglecting the mass of the bar and shaft what are the

Determines the effect of price reduction, Determines the effect of price re...

Determines the effect of price reduction: In order to enhance the sales, management of Quality ice-cream company decided to give discounts in the sale of one and half liter pa

#power plant, Components of power plant &it''s functions

Components of power plant &it''s functions

Convolution Integral, For a transfer function graph with h(t) on the y-axis...

For a transfer function graph with h(t) on the y-axis and time in seconds on the x-axis, the h(t)=1 from 0 to 2 seconds, while h(t)=0 everywhere else. How do I graph the unit step

Motion of this particle, Motion of this particle: A particle of mass m...

Motion of this particle: A particle of mass m is resting on a smooth horizontal plane as illustrated in Figure (a). It is associated to a spring which has a constant of k in f

Applications, applications of dynamically induced emf

applications of dynamically induced emf

Evaluate the support required by body on plane, Evaluate the Support requir...

Evaluate the Support required by body on plane: A body having weight 50KN rests in limiting equilibrium on rough plane, whose slope is 30º. The plane is raised to a slope of

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