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

Effect on the corrosion rate of carbon steel, Q. Effect on the corrosion ra...

Q. Effect on the corrosion rate of carbon steel? The velocity of the acid has a significant effect on the corrosion rate of carbon steel. The recommended velocity range for pi

Chisel-tool and equipment , Chisel: Chisels are used in the combination of...

Chisel: Chisels are used in the combination of hammer to remove metals. A set of chisels is shown in Figure. Figure: Chisel

Explain concept of radial drilling machine, Concept of Radial Drilling mach...

Concept of Radial Drilling machine Radial Drilling machine is a large gear headed drill press in which the head moves along the arm that radiates from the column of the machine

Direct current, Direct Current Using direct current, the tungsten el...

Direct Current Using direct current, the tungsten electrode may be connected to either the negative or the positive terminal of the supply of power. In almost all cases, ele

Principals, do you know the grade to the answers of the questions in the pr...

do you know the grade to the answers of the questions in the pre paid solutions..?? and what if the answers are wrong..?? as i need all working out shown

Calculate the density of the composite, Five kilograms of continuous boron ...

Five kilograms of continuous boron fibers are introduced in a unidirectional orientation into 8 kg of an aluminum matrix. Calculate a.  the density of the composite b.

Material selection by temperature range, Q. Material selection by temperatu...

Q. Material selection by temperature range 750° to 1100°F (400° to 600°C) ? Plain carbon steels are usually limited to a maximum operating temperature of 750°F (400°C).  There

Derive mathematical equation for bernoulls equation, Derive mathmatical equ...

Derive mathmatical equation for Bernoull's equation, what are the application of Bernoull's equation and illustrate any one.

Insulation on flanges and valves, Q. Insulation on Flanges and Valves? ...

Q. Insulation on Flanges and Valves? Valves, flanges, and unions shall not normally be insulated unless specified by OWNER. All other fittings are to be insulated. Fittings

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