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

Objectives registration scheme entrepreneurship development, Objectives of ...

Objectives of the Registration Scheme They are summarized as follows: To enumerate and maintain a roll of small industries to which the package of incentives and suppor

Pultrusion, Pultrusion Structure sections of long length are generated...

Pultrusion Structure sections of long length are generated by putting the fibres via resin bath and heated dies of exact shapes. Unidirectional fibres along with high volume f

Constructional details of two stroke engine, Constructiona l Details of Tw...

Constructiona l Details of Two Stroke Engine: The basic components are cylinder, piston, piston liners, connecting rod, piston rings, crank pin, crank shaft, counter weight e

How can you implement chemically coated sand, Q. How can you implement chem...

Q. How can you implement chemically coated sand? Chemically coated sand : Clean silica grains are sometimes coated with a non thermosetting hydrocarbon resin, which acts as a

What do you understand by interference, (a) Derive a mathematical expressio...

(a) Derive a mathematical expression for Maximum length of path of Contact, Maximum Length of Arc of Contact and Contact Ratio in case of Interference. (b) What do you understan

Pattern practices - manufacturing processes, Pattern Practices - Manufactur...

Pattern Practices - Manufacturing processes: Pattern Practices : A pattern may be defined as a replica or fascimile model of the desired casting which, when packed or embedd

Project, give some best names

give some best names

Factors in the design of high temperature materials, Q. Factors in the desi...

Q. Factors in the design of high temperature materials? There is typically little correlation between room temperature strength and high temperature strength of creep-resistant

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