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

Plasma welding, PLASMA WELDING This is an extension of TIG welding. In...

PLASMA WELDING This is an extension of TIG welding. In plasma welding torch, plasma energy is constricated and ensures its most efficient utilisation for welding cutting and s

Wire melting characteristics, WIRE MELTING CHARACTERISTICS A non linear r...

WIRE MELTING CHARACTERISTICS A non linear relationship exists between the rate at which the wire is fed into the arc and the current required to burn it off to maintain a constan

Front top view of the motorcycle part of motorcycle, Figure : Front Top Vie...

Figure : Front Top View of the Motorcycle Part No. Part Name Functions 1 Turn signal switch Used to give

What is euler operators, What is euler operator Once a polyhedron model...

What is euler operator Once a polyhedron model is available one might want to edit it by adding or deleting vertices, edges and faces to create a new polyhedron. These operatio

Determine the isentropic flow through the nozzle, Determine the isentropic ...

Determine the isentropic flow through the nozzle: In an isentropic flow through the nozzle, air flows at rate of 600Kg/hr. At inlet to the nozzle, the pressure is 2Mpa and te

Briefly explain model scale design, Q. Briefly explain Model scale design? ...

Q. Briefly explain Model scale design? Knowledge of dynamic similarity conditions enables evaluation of model scales. Almost alI the problems related to river hydraulics are ab

Calculate the actual machining time, Calculate the Actual Machining Time ...

Calculate the Actual Machining Time Estimate the actual machining time required for the component of diameter 42 mm and length 120 mm. The available speeds are 70, 110, 176, 2

Position of centre of gravity of the frustrum of a cone, Position of centre...

Position of centre of gravity of the frustrum of a cone: situate the position of C. G. of the frustrum of a cone with height H = 12 cm and with  diameter 8 cm and 12 cm at top

Systematic layout planning, What are the primary benefits of using computer...

What are the primary benefits of using computerized layout procedures vs. Systematic Layout Planning (SLP) procedures done by hand?

Feed speed-spindle rpm-cutting time material removal rate, A hole of 25 mm ...

A hole of 25 mm diameter and 62.5 mm depth is to be drilled. The suggested feed is 1.25 mm/rev.and the cutting speed is 60 m/min. Assume the clearance height is 5 mm. Determine: f

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