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

What are the advantages and disadvantages of induction motor, What are the ...

What are the advantages and disadvantages of induction motors? A coil of 500 turns is linked by a ?ux of 0.4 mWb. If the ?ux is reversed in 0.01 second, ?nd the e.m.f induced i

Planning a retail interior space, Question 1: A good display of the mer...

Question 1: A good display of the merchandise is the result of planning, cooperation and coordinating. A good schedule of work is important for a good design with the use of me

Calculate the unit step time response for a system, (a) Calculate the unit ...

(a) Calculate the unit step time response for a system with pulse transfer function (b) Calculate the pulse transfer function of a unity feedback discrete time system with

Stroke and clearance volume - thermodynamics, Stroke and Clearance Volume: ...

Stroke and Clearance Volume: Stroke The distance traveled by piston from the topmost positions of it (also called Top dead centre TDC ), to its bottom most position (or

Seasonal-component analysis, Seasonal-Component Analysis: A food proce...

Seasonal-Component Analysis: A food processor uses a moving average to forecast next month's demand. Actual demand data for the past few months is available as depicted in the

Construction of lacashire boiler, Construction of Lacashire boiler: C...

Construction of Lacashire boiler: CONSTRUCTION : Consists of boiler shell which contains water and steam. Diameter can vary from 1.75 to 2.75 m and length can be 7.25 - 9 m

Remove clutch cover and check clutch- clutch complaint, Remove clutch cover...

Remove clutch cover and check clutch operating arm, spring and clutch lifter rod :Check for free movement of rod clutch lifter in the cover right crankcase. Check for lever comple

Mollier diagram - thermodynamics, Mollier diagram: Mollier diagram is ...

Mollier diagram: Mollier diagram is chart drawn between enthalpy H (on ordinate) and entropy or S (on abscissa). It is also called as H-diagram. It depicts properties of water

Types of fermentation and scales of operation, Those that produce microbial...

Those that produce microbial cells e.g.Baker's yeast or mycoprotein. Those that produce microbial enzymes e.g. alpha amylase for starch processing, glucose isomerase for the pro

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