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

Explain a cone clutch, Explain a cone clutch. How this clutch is designed. ...

Explain a cone clutch. How this clutch is designed. It is needed to design a rigid type of flange coupling to connect two shafts. The input shaft transmits 37.5 kW power at 180

Determine the forces in the members, A truss of 12 m span is loaded as show...

A truss of 12 m span is loaded as shown in figure below. Determine the forces in the members of the truss by method of sections.

Jigs and fixtures, state the purpose and function of work holder

state the purpose and function of work holder

General resource models, General Resource Models In  computer  control...

General Resource Models In  computer  controlled scheduling,    material,  machine handling  equipment,  tooling  and  buffer  space  should  be comprised. The explicit consid

High duty tool and die steels, High Duty Tool and Die Steels: High du...

High Duty Tool and Die Steels: High duty punching tools or dies are made out of a lot of various steels of fairly high alloying contents. High-carbon high-chromium die steel

Types of buildings required for plant, Q. Types of buildings required for P...

Q. Types of buildings required for Plant? The following types of buildings may be required: • Control rooms / Motor Control Centers (MCC) / Equipment rooms. • Electrica

Die design, #question calculate bending force

#question calculate bending force

Design close coiled helical compression spring, Prepare a design of close c...

Prepare a design of close coiled helical compression spring for a service load ranging from 2250 N to 2750 N. The axial deflection of the spring for the load range is 6 mm. Conside

What do you mean by preignition, Explain the autoignition and detonation th...

Explain the autoignition and detonation theory of detonation. What do you mean by preignition ? Describe octane Rating of a fuel. What are the different S.I. engine combustion cham

Second gear position- shifting of gear, Second Gear Position: When ge...

Second Gear Position: When gear M2 on the main shaft is in mesh with gear C2 on the countershaft then this is known as second gear position. To rotate free gear M2 with the m

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