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

Press tools, Difference between press forminig and hammer forming

Difference between press forminig and hammer forming

Mr, how is the theory of kinematics applied to secondary machining

how is the theory of kinematics applied to secondary machining

Corollaries of first law of thermodynamics, Corollaries of first law of the...

Corollaries of first law of thermodynamics: First law of thermodynamics has significant corollaries. Cor ollary 1: (First Law for process). There exists property of

Define the side rake angle, Define the Side Rake Angle? It measured the...

Define the Side Rake Angle? It measured the slope of top surface of the tool to the side in the direction perpendicular to longitudinal axis it also guides the direction of chi

Selection of metallic materials, Q. Selection of metallic materials? Th...

Q. Selection of metallic materials? This Engineering Practice has been written to assist those involved in the construction of new equipment and for the maintenance of existing

Determine the maximum efficiency, A jet strikes tangentially a smooth curve...

A jet strikes tangentially a smooth curved vane moving in the similar direction as the jet, and the jet gets reversed in the direction. Prove that the maximum efficiency is slightl

Crankshaft, what is the use of crankshaft?

what is the use of crankshaft?

Find stress intensity factor - thick cylinder, Find stress intensity factor...

Find stress intensity factor - thick cylinder: A thick cylinder of r i = 10 mm, r 0 = 70 mm carried equal and symmetric radial cracks 6 mm long on opposite sides of inner su

Cylinder head-basic components of engine , Cylinder Head: It is fitted at...

Cylinder Head: It is fitted at top of the cylinder block. It provides space for the arrangement of spark plug, combustion chamber, camshaft, cam chain, valves and intake and exha

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