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

Thermosetting plastics, Q. What do you mean by Thermosetting plastics? ...

Q. What do you mean by Thermosetting plastics? This plastic undergoes a number of chemical changes on heating and cure to infusible and practically insoluble articles. The chem

Coplanar and non-coplanar forces, Coplanar and Non-Coplanar Forces: In...

Coplanar and Non-Coplanar Forces: In this unit, you have learnt to identify the different systems of forces. You have also learnt the many techniques of adding the forces to g

Design of a filament winding machine, How can I achieve a back and forth mo...

How can I achieve a back and forth movement of carriage system. How can I reverse the motor to go back and forth.

Define strain, Define strain: Sol. : STRAIN(e) : When the body is sub...

Define strain: Sol. : STRAIN(e) : When the body is subjected to some external force, there is some change in dimension of body. The ratio between change in the dimension of b

Define the plastic materials-polymers processing methods, Plastic Materials...

Plastic Materials/Polymers processing methods. Under this category are included the various methods for processing plastic material/polymers for example, shape casting, the

Design a cam profile, A cam is required to a lift of 30 mm for a rotation r...

A cam is required to a lift of 30 mm for a rotation range of 60 o . The follower then dwells at this level for a further 90 o and then falls over the next 60 o . Finally the rest

Sales incentives-AUTOMOBILES INDUSTRY GROWTH , Sales incentives , introduct...

Sales incentives , introduction of new models as well as variants coupled with easy availability of low cost finance with comfortable repayment options continues to drive demand an

First law of thermodynamics, First law of thermodynamics: The First La...

First law of thermodynamics: The First Law of Thermodynamics states that work and heat are equally convertible. The present tendency is to include all the forms of energy. The

Spray transfer, Spray Transfer In a gas shield of argon or argon rich m...

Spray Transfer In a gas shield of argon or argon rich mixture [i.e., Ar+CO 2 gas mixture containing more than 80 % argon] the metal transfer changes from globular to spray typ

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