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

Determine power required and the cop of the system, A Boot Strap Cooling sy...

A Boot Strap Cooling system of 10 TR capacity is used in an aeroplane. The ambient air pressure and temperature are 0.85 and 20 0 C bar respectively. The pressure of air increases

Hydrodynamic lubrication, a) State FOUR factors that affect the effectivene...

a) State FOUR factors that affect the effectiveness of hydrodynamic lubrication as a means of reducing friction between components. b) Under what conditions would boundary lubri

Polymer, classification of polymers

classification of polymers

Shear stress, write the assumption made in derivetion of shear stress produ...

write the assumption made in derivetion of shear stress produced in circular shaft subjected to torsion

Theory of machine, In turning moment diagram. why we start to draw curve fr...

In turning moment diagram. why we start to draw curve from o degree?

Defects involving inadequate bonding, Defects Involving Inadequate Bonding ...

Defects Involving Inadequate Bonding Lack of fusion Involves lack of complete melting and fusion of some portion of the weld metal in a joint. It may occur either bet

Induction pressure welding, Induction Pressure Welding In this process,...

Induction Pressure Welding In this process, the current is induced by high frequency induction process in the job. Due to electrical induction the job is heated. When a suitabl

Deficient frame and redundant frame - truss, Deficient Frame and Redundant ...

Deficient Frame and Redundant Frame - truss: Deficien t Frame: If the numbers of member in the frame are less than (2 j -3), then the frame is called as deficient fr

What is a quari static process, Illustrate the terms : (i) State (ii)...

Illustrate the terms : (i) State (ii) Process and (iii) Cycle What is a quari static process ? Illustrate with an example. What are point function and path function.

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