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

Military and civil aircraft, Military and Civil Aircraft: Military air...

Military and Civil Aircraft: Military aircraft can be of several types such as : (a) Cargo carriers, with capacity to carry heavy loads, such as trucks and tanks. (b) Fi

Explain concept of tapping of radial drilling machine, Explain concept of T...

Explain concept of Tapping of radial drilling machine Tapping:- Tapping is the method by which internal threads are produced. It is performed either by hand or by machine.

Determine the shear stresses, A composite shaft consists of copper rod of 3...

A composite shaft consists of copper rod of 30mm diameter enclosed in a steel tube of external diameter 50mm and 10 mm thick. The shaft is needed to transmit a shaft is required to

What is tantalum, Q. What is Tantalum? Tantalum is one of the most corr...

Q. What is Tantalum? Tantalum is one of the most corrosion-resistant metals known. However, the high cost of tantalum has limited its commercial use as an all-purpose corrosio

Fundamental geometric transformation, Fundamental geometric transformation:...

Fundamental geometric transformation: The fundamental geometric transformation is Rotation, Translations and Scaling. Other transformations involve reflection and shearing. Tr

Can you explain corners and fillets, Q. Can you explain Corners and fillets...

Q. Can you explain Corners and fillets ? Corners and fillets The intersection of the surfaces in casting must be smooth and forms no sharp angles. For this, the external a

Melting point, What is melting point of aluminium?

What is melting point of aluminium?

Design requirements for aircraft access, Q. Design requirements for Aircraf...

Q. Design requirements for Aircraft Access? For some remote locations, provision may be required for occasional landing of aircraft during emergencies or executive visits. Thes

Calculate the coefficient of performance of refrigerator, (a) List out the ...

(a) List out the advantages of air refrigeration system besides of vapour refrigeration system . (b) A vapour Compression refrigerator uses R-40 and acts between temperature - 1

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