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

Carnot cycle - thermodynamics, Carnot Cycle - thermodynamics: Carno ...

Carnot Cycle - thermodynamics: Carno t Cycle: Sadi carnot; this is based on second law of thermodynamics introduced the concepts of reversibility and cycle in the year 1824

Welding of pressure parts in boilers, This section covers welding of pressu...

This section covers welding of pressure parts including those non-pressure parts when welded to pressure parts. All welding design functions necessary within the contract shall be

Engineering mechanics, what is the reason that rails are made in I-section ...

what is the reason that rails are made in I-section form and not in the form of rectangular section.

Magnetic device with moving iron element , A singly excited magnetic device...

A singly excited magnetic device with a moving iron element is illustrated in the figure below. g = 0.10 mm d = 2.0 cm b = 3.0 cm Assume the mmf in the iron and th

Define properties of system, Define Properties of System For defining a...

Define Properties of System For defining any type of system particular parameters are required. Properties are those observable characteristics of the system, which can be util

Advantages of multiple vessels, Reduced costs result from failure Easier...

Reduced costs result from failure Easier fermenter planning (particularly in light of above) Easier downstream scheduling Off the shelf supplies e.g. motors Routine sup

Explain ash handling system, Illustrate the following : a. Ash handling ...

Illustrate the following : a. Ash handling system b. Dust collection What are the impurities in the water and how they are replaced for use as feed water in modern thermal

Thermal, diference between thermal and thermodynamic equallibrim

diference between thermal and thermodynamic equallibrim

Diffusion bonding, DIFFUSION BONDING In this process, union between sp...

DIFFUSION BONDING In this process, union between specially prepared mating surfaces takes place as a result of diffusion, which occurs due to high temperature & pressure, exer

Sewage treatment, Q. Sewage Treatment? Unless located in a metropolitan...

Q. Sewage Treatment? Unless located in a metropolitan area, it is common for plants to have sewage treatment facilities for disposal of sewage and grey water generated in the p

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