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

What is the density of plastic, Plastics are the common term for a wide ran...

Plastics are the common term for a wide range of synthetic or semi synthetic polymerization products. There are many dissimilar plastics; all have their own density!

Steam mass capacity, I have 5000 kg boiler capacity. In flow of 1 m3 gas fl...

I have 5000 kg boiler capacity. In flow of 1 m3 gas flow how much steam I can produce

Determine the cutting ratio, Write the velocity relationship in orthogonal ...

Write the velocity relationship in orthogonal cutting. A bar of 75 mm dia. is reduced to 73 mm by a cutting tool while cutting orthogonally. If the mean length of cut chip is 73.5

Reinforced concrete design, You are tasked with the analysis and design of ...

You are tasked with the analysis and design of the gravity and wind framing system for a 6-story office building. A part plan of the building is attached.  The plan dimensions o

Back Rake Angle, Why is back rake angle preferred to be negative for brittl...

Why is back rake angle preferred to be negative for brittle materials?

Biaxial tension-compression state, Given:  A brittle material has an ulti...

Given:  A brittle material has an ultimate tensile strength of 300 MPa and an ultimate compressive strength of  -1000MPa.  Assume that failure can be represented by the Modified

Compund cylinders, A compound cylinder is made by shrinkage one cylinder of...

A compound cylinder is made by shrinkage one cylinder of 120 mm external diameter and 20 mm wall thickness. The shrinkage allowance , based on radius , is 0.025 mm. If both cylinde

Engine, What is ignition angle offset

What is ignition angle offset

Two stroke engine - thermodynamics, T w o Stroke Engine In the two st...

T w o Stroke Engine In the two stroke engine, instead of valves ports are given, these are opened and closed by moving piston. Through inlet port, the mixture of air and fuel

What is the eutectoid composition, Question 1 What is the eutectoid com...

Question 1 What is the eutectoid composition in the phase diagram? Question 2 For an alloy of 40%C/60%D at 400°C, indicate the phase/s that are present. It is not neces

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