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

Welding head, Welding Head Submerged arc welding head consists of the wir...

Welding Head Submerged arc welding head consists of the wire spool, wire feed system, flux delivery hopper and electrical contact nozzle. The electrode wire is unwound from the s

Evaluate tension in the string, A smooth sphere of radius 15 cm and weight ...

A smooth sphere of radius 15 cm and weight 2 N is supported in contact with a smooth vertical wall by a string whose length simlar the radius of sphere. The string joins a point on

Design varies with scale of operation, Design varies with scale of operatio...

Design varies with scale of operation The design of a fermenter varies with scale of operation from lab (1-20L), to pilot (up to 5000L) to production (to >200,000L) scales. Th

Steam turbines, The steam that leaves the super-heater is expanded from 130...

The steam that leaves the super-heater is expanded from 130bar at 535°C to 25.2bar at 310°C in a high pressure turbine. The steam from the exit of the HP turbine is reheated to 535

Describe the break-even-analysis, What is Time-Study ? How the standard tim...

What is Time-Study ? How the standard time is determined in Time-Study ? What are the Merit-Rating ? Illustrate various methods of Merit-Rating. Describe the Break-Even-Analy

Perform a beam analysis, You need to sketch shear force and bending moment ...

You need to sketch shear force and bending moment diagrams and estimate maximum bending and shear stresses acting on the beam using your knowledge in beam analysis.  Please note

Flow chart, how to flow chart Volume calculation ?

how to flow chart Volume calculation ?

Periodic motion-frequency-time period-free vibration, Periodic Motion: Th...

Periodic Motion: This is the motion that repeats after a regular interval of time. Frequency: This is the number of cycles finished in a unit time. Time Period: This is

Pure torsion, Pure Torsion: What do you mean by pure Torsion?       ...

Pure Torsion: What do you mean by pure Torsion?                                                                                                       In general two typ

Thermal, Prove that energy is a property of system

Prove that energy is a property of system

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