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

Steps of inspection of electrical equipment, Inspection of Electrical Equip...

Inspection of Electrical Equipment STEPS All electrical equipment are checked for proper functioning. The starting and lighting of the motorcycle should be prope

Stresses and strains in bars of varying sections, a concrete column of 350m...

a concrete column of 350mm diameter is reinforced with 4 bars of 25mm diameter . find the stress when the concrete is subjected to a stress of 4.5 MPa . also find the safe load in

Draw shear force diagrams for the overhanging beam, Draw shear force diagra...

Draw shear force diagrams for the overhanging beam: Draw shear force & bending moment diagrams for the overhanging beam illustrated in Figure Figure  Solution

Splitwedge gate valve, Types of Splitwedge gate arrangement need to underst...

Types of Splitwedge gate arrangement need to understand

Define what is nose radius, Define What is Nose Radius? The nose radius...

Define What is Nose Radius? The nose radius is provided to increase finish and strength of the cutting tip of the tool. Small radii will produce smooth finish and are used on t

Fluids, show a schematic circuit diagram of a electric hydraulic gear pump...

show a schematic circuit diagram of a electric hydraulic gear pump with adjustable with one direction flow and explain the operation

Slidercrank, connecting rod AB of length L support a variable compressiv fo...

connecting rod AB of length L support a variable compressiv force F .Drive an expression for the moment of F about the crank axis O in the term of F L r and angle

Determine the point of contraflexure - overhanging beam, Determine the poin...

Determine the point of contraflexure: Draw the shear force & bending moment diagram for 10 m span overhanging beam along overhanging part of 4 m subjected to a system of loads

Calculat ethe total amount of phase, Question 1 For an equilibrium cool...

Question 1 For an equilibrium cooled alloy of 92%D/8%C, which of the above diagrams best represents the microstructure at 0°C? Question 2 For an equilibrium cooled allo

Electron beam welding, ELECTRON BEAM WELDING In this process fusion is...

ELECTRON BEAM WELDING In this process fusion is achieved by focusing a high power density beam of electrons on the area to be joined. Upon striking the metal, the kinetic ener

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