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

Estimate the cutting time, Estimate the Cutting Time A surface 115 mm ...

Estimate the Cutting Time A surface 115 mm wide and 250 mm long is to be rough milled with a depth of cut of 6 mm by a 16-tooth cemented carbide face mill 150 mm in diameter.

Design a remote controlled buggy, You are required, as part of a small team...

You are required, as part of a small team, to design a remote controlled buggy that can be made to move forwards, backwards and from side to side. The basic buggy and motors are pr

If no leak found in the above listed area remove flywheel, If no leak found...

If no leak found in the above listed area remove flywheel: Remove fly wheel and check weather oil leak is from the seal or "o" ring.

Steps of inspection of electrical equipment, Inspection of Electrical Equip...

Inspection of Electrical Equipment STEPS All electrical equipment are checked for proper functioning. The starting and lighting of the motorcycle should be prope

#title.gear train, explain the working of gear trainAsk question explain de...

explain the working of gear trainAsk question explain detail#Minimum 100 words accepted#

Air-gas cross-limiting and air-gas ratio control, Q. Air-Gas Cross-Limiting...

Q. Air-Gas Cross-Limiting and Air-Gas Ratio Control? The Steam Generator firing demand signal is directed to two discrete signal selectors. A low signal selector ensures that

Test the strength of binders, Strength tests : These tests are carried out ...

Strength tests : These tests are carried out to check the holding powers of various binders used in green moulding sand, dry moulding sand and core sand. These tests are performed

Determine elongation because of self weight of conical bar, Determine elong...

Determine elongation because of self weight of conical bar: Sol.: Consider conical bar ABC of length L with the diameter d fixed rigidly at AB . Let attention be focuse

Production engineering, what are the finishing operation in construction of...

what are the finishing operation in construction of telephone receivers?

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