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

SFD AND BMD, what is SFD and BMD? EXPLAIN

what is SFD and BMD? EXPLAIN

Determine the maximum allowable tensile strength, 1. The linkage system bel...

1. The linkage system below consists of two bars A & B plus 4 linkages. Each linkage has a square cross section. The allowable tensile strength of all members is 200 MPa, the allow

Limitations of first law of thermodynamics, limitations of first law of the...

limitations of first law of thermodynamics: There are some limitations of First Law of Thermodynamics. 1. When a closed system undergoes thermodynamic cycle, the average he

Find out change in length of circular bar, Find out change in length of cir...

Find out change in length of circular bar of uniform taper Sol.: The stress at any cross section can be found by dividing load by area of cross section and extension can be

Instantaneous stress formula, Ask quesinstantaneous stress formulation #Min...

Ask quesinstantaneous stress formulation #Minimum 100 words accepted#

Material handling equipment, In selection of material handling equipment...

In selection of material handling equipment itself Hageman indicates that the final consideration are: 1. Methods of Installation: Operating controls should be accessibl

Find the component of force on the inclined plane, Find the component of fo...

Find the component of force on the inclined plane: A small block of weight 300N is placed on the inclined plane, which makes an angle 60° with the horizontal. Find the compone

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