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

Water turbine, what are the types of water turbine and its application ?

what are the types of water turbine and its application ?

Manufacturing process for reinforced plastic parts, Manufacturing Process F...

Manufacturing Process For Reinforced Plastic Parts Two processes that are open mould and close mould are commonly utilized for manufacture of reinforced parts. Hand layup proce

How long does it take a plane, How long does it take a plane, traveling at ...

How long does it take a plane, traveling at a constant speed of 190 m/s, to fly once around a circle whose radius is 2950 m?

Find out the magnitude of the force to keep equilibrium, Find out the magni...

Find out the magnitude of the force to keep equilibrium: Th e lever ABC of a component of machine is hinged at point B , and is subjected to a system of coplanar forces.

Physics, when object is placed beyond the center of concave mirror

when object is placed beyond the center of concave mirror

Kinematics and dynamics of Machines, Please help me with this question if y...

Please help me with this question if you are 100 % sure that you will assure me a perfect grade. Please let me know as soon as possible. I need the solution within 18 hours from no

compound belt drive, Compound Belt Drive: When several pulleys are use...

Compound Belt Drive: When several pulleys are used to transmit power from one shaft to the other then a compound belt drive can be obtained. Figure V elocit y

Compare otto cycle with diesel cycle, Compare otto cycle with Diesel cycle:...

Compare otto cycle with Diesel cycle: Sol.: These two cycles can be compared on the basis of either the same compression ratio or the same maximum pressure and temperature.

Tension in string and accelerations of block, Tension in string and acceler...

Tension in string and accelerations of blocks: Find out the tension in string and accelerations of blocks A and B having weights 200N and 50N respectively, connected by the s

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