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

How is varignons theorem useful in engineerin mechanics, how is varignons t...

how is varignons theorem useful in engineering mechanics

Eccentricity-unbalance-balancing, Eccentricity : This is distance between...

Eccentricity : This is distance between the axis of rotation and CG of mass. Unbalance : This is the product of mass and eccentricity. Balancing : This is

Determine the maximum stress in the beam, For the beam shown below, we need...

For the beam shown below, we need to determine: (i) The support reactions R L and R R                                                                            (ii) The s

Define the project scope, Q. Define the project scope? The Design Basis...

Q. Define the project scope? The Design Basis Memorandum defines the project scope. This includes basic design concepts and the basis and philosophies upon which the project s

Show construction subcontractor responsibilities, Q. Show Construction Subc...

Q. Show Construction Subcontractor Responsibilities? The Supplier or Construction Subcontractor is responsible for: • Employing qualified PMI technicians • Performing PMI

Electrode wire for co2 welding, ELECTRODE WIRE FOR CO2 WELDING CO 2 we...

ELECTRODE WIRE FOR CO2 WELDING CO 2 welding wire must have a special composition to withstand the oxidising nature of the CO 2 arc atmosphere. Though, CO 2 is not reactive a

Derive the equation for the shape of the surface, (Rigid body rotation) De...

(Rigid body rotation) Derive the equation for the shape of the surface zsurf(rsurf) for a rigid-body rotation of water at angular speed (rad/sec). Follow this process: 1) S

D.c circuits, formulae for finding gross torque developed by the armeture

formulae for finding gross torque developed by the armeture

Engine keeps on running after ignition is switched off, If Engine Keeps on ...

If Engine Keeps on Running after Ignition is Switched Off Causes of Problem Remedy Pre-ignition due to very hot spark plug used

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