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

Magnetic susceptibility and ferromagnetic substances, Magnetic Susceptibili...

Magnetic Susceptibility and Ferromagnetic Substances: Magnetic Susceptibility: The magnetic susceptibility (c) of a substance is defined  as the ratio of the intensity of magn

Physics Question, Hello to whom it may concern. I am currently having much...

Hello to whom it may concern. I am currently having much trouble with a physics problem. I have an inverted L beam lying on a table. At the end of the flat piece laying on the t

Inlet and exhaust valves-basic components of engine , Inlet and Exhaust Val...

Inlet and Exhaust Valves : Valves are commonly mushroom shaped poppet type. They are provided on the cylinder for regulation of the charge coming into the cylinder (inlet valve)

Resultant of non-coplanar force system, Resultant of Non-coplanar Force Sys...

Resultant of Non-coplanar Force System: The resultant of a system of coplanar forces can be attained by adding up two forces through law of parallelogram at a time and after t

Electron beam welding(ebw)-basic principle, BASIC PRINCIPLE OF ELECTRON BEA...

BASIC PRINCIPLE OF ELECTRON BEAM WELDING(EBW)   Electron beam welding which utilises a heat source of electrons which are accelerated by an electric field to mextremely high

How can heat be applied to acrylic, In most hardware stores, you can find w...

In most hardware stores, you can find what has known as a Heat Gun. Hold the heat gun about 6 inches away from the acrylic you intend on bending say the bumper on a car. They are p

compound belt drive, Compound Belt Drive: When several pulleys are use...

Compound Belt Drive: When several pulleys are used to transmit power from one shaft to the other then a compound belt drive can be obtained. Figure V elocit y

Illustrate the babcock and wilcox boiler, How the boiler are classified? Sk...

How the boiler are classified? Sketch and define the babcock & Wilcox boiler and also Compare the water tube boiler and fire tube?

Heat treating equipment, Heat Treating Equipment: The major equipment...

Heat Treating Equipment: The major equipment for heat treatment is furnace. There are two main categories of furnaces - batch and continuous. The furnace selection needs cons

Thermodynemics, explain the following terms in brief:- point function and p...

explain the following terms in brief:- point function and path funtion

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