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

Detremine the real root of equation, a) Determine a real root of the equati...

a) Determine a real root of the equation cosx = 3x-1 correct to three decimal places using Iteration method. b) Detremine the real root of the equation logx - cosx =0 by Newton

Classification of electrodes, CLASSIFICATION OF ELECTRODES The classifica...

CLASSIFICATION OF ELECTRODES The classification system used in the specification AWS A 5.1 which is for carbon steel electrodes follows established pattern for AWS filler metal s

What is the function of a clutch in an automobile, (a) What is the function...

(a) What is the function of a clutch in an automobile? Illustrate the principle of friction clutches with the help of neat diagrams. (b) Discuss the working and construction of

Help with homework, The crate A of weight W=27lb is being pulled to the rig...

The crate A of weight W=27lb is being pulled to the right by the winch at B. The crate starts at x=0 and is pulled a total distance 15ft over the rough surface for which the coeffi

Engine lubrication system , Engine Lubrication System: This system facilit...

Engine Lubrication System: This system facilitates the lubrication of all the engine components, gears and other associated parts.

Weld preparation-joint tolerance-cleaning, WELD PREPARATION: Joint Toleranc...

WELD PREPARATION: Joint Tolerance & Cleaning   Joint Tolerance The allowable tolerance of joint dimensions depends upon whether the welding is to be done manually or

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