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

Design analysis drafting machine, hello,my name is mustapha from iran I wa...

hello,my name is mustapha from iran I want design piston engine (structure design cranckshaft ,rod,bearing,...)

Masonry arch culverts, Masonry Arch Culverts: Brick or stone masonry ...

Masonry Arch Culverts: Brick or stone masonry arches were very popular forms for culverts till recently. The disadvantage with this form is the unavoidable humps in the longi

Kinematics-dynamics-kinematic link, Kinematics: This is that branch of Th...

Kinematics: This is that branch of Theory of Machines that deals with the relative motion among the several machine parts; without referring forces or torques that cause motion.

HINT, WRITE THE SHORT NOTES ON SLUDGE AND SCALE

WRITE THE SHORT NOTES ON SLUDGE AND SCALE

Expression for condition of maximum discharge, Drive an mathmatical express...

Drive an mathmatical expression for condition of maximum discharge through the chimney. Dry saturated steam is supplied from a boiler to a steam engine at a pressure of 15 bar.

Motion on the inclined plane when the surface is smooth, Motion on the incl...

Motion on the inclined plane when the surface is smooth: Sol:  WHEN THE SURFACE SMOOTH   The Figure given shows a body having weight W, sliding down on a smooth in

Due diligent, Due Diligent:   There are many literatures on sand blast...

Due Diligent:   There are many literatures on sand blasting and manufacturing processes. Historically, sand blasting had been used for many tasks before. It was pretty famous

Describe Geometric information of b-rep, Geometric information of B-rep ...

Geometric information of B-rep Geometric information are usually equations of the edges and faces.

What is windsocks, Windsocks shall be installed at plant facilities handlin...

Windsocks shall be installed at plant facilities handling flammable gases, volatile liquids or toxic materials and also at helipads (may require lighting if night flights are inten

Incompletely constrained motion-kinematic chain, Incompletely Constrained M...

Incompletely Constrained Motion: While a connection among the elements, building a pair is such that the constrained motion is not done by itself, but by some other means. Such a

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