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

Calculate the length of plastic deformation, Calculate the length of plasti...

Calculate the length of plastic deformation: Calculate the length of plastic deformation along 45o in case the applied stress is 63.25% of yield stress in the plate of abov

Explain single piece pattern, Single piece pattern These are inexpensiv...

Single piece pattern These are inexpensive and the simplest type of patterns. As the name indicates, they are made of a single piece as shown in Figure.2.2 this type of pattern

Calculate the machine power factor, A 3-phase, 15-kV, 4-pole, cylindrical r...

A 3-phase, 15-kV, 4-pole, cylindrical rotor synchronous generator is connected to a 50-Hz infinite bus. The synchronous reactance of the machine is X s = 0.6 ohms per phase and th

What do you mean by terms change of state, (a) Illustrate reversible, irrev...

(a) Illustrate reversible, irreversible and Quasi-static process with examples. (b) What do you mean by terms change of state, path, process, property, cycle. (c) Distinguish

Mechnics of solids thick cylinder, a compound cylinder is composed of a tub...

a compound cylinder is composed of a tube of 250mm internal diameter at 25mm wall thickness.it is shrunk on to a tube of 200mm internal diameter. the radial pressure at the junctio

Applied Elasticity, Can you prove an equation from Plane Stress and Plane s...

Can you prove an equation from Plane Stress and Plane strain?

Determine the apparent range of the target - radar system, Consider radar w...

Consider radar with a PRF of 5 kHz. What is the maximum unambiguous range R ua of this radar, in km?  If a target is located at a range of 50 miles, how many pulses will the r

Classification of cast iron, Classification of Cast Iron: CI having C...

Classification of Cast Iron: CI having C in form of cementite is named as white cast iron. Microstructure of that CI consists of pearlite, cementite and ledeburite. Whether C

Mechanical design calculations, Q. Mechanical Design Calculations? The ...

Q. Mechanical Design Calculations? The Mechanical Design Engineer/Specialist shall be responsible for mechanical design calculations that are required to ensure that the end pr

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