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

Ladder slip, ladder slip: A uniform ladder having length of 7m rests ...

ladder slip: A uniform ladder having length of 7m rests against vertical wall with which it makes an angle of 45º, coefficient of friction between ladder and wall is 0.4 and

Explain screw conveyor, Screw conveyor Screw conveyor during mixing an...

Screw conveyor Screw conveyor during mixing and flow directing paddles are selectively adjustable for use on a wide variety of materials having dissimilar flow characteristics

Moment of Force, How do I solve this question? http://i195.photobucket.com...

How do I solve this question? http://i195.photobucket.com/albums/z154/NanazRulez/20120802_155751.jpg

If engine does not start in wet or damp weather, If Engine Does Not Start i...

If Engine Does Not Start in Wet or Damp Weather Causes of Problem Remedy   Insulators are not clean and dry Fuel t

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

Polymerization, Polymerization Whether similar molecules join in long ...

Polymerization Whether similar molecules join in long chain is termed as polymerization and resulting outcome is a polymer in a chemical reaction. Each plastic are polymers. T

Steps involved for method of section, Step s Involved for Method of Sectio...

Step s Involved for Method of Section: The different steps involved are stated below: (1) First find out support reaction by using equilibrium conditions. (2) The truss

Resolution of a force - mechanics, Resolution of a force: Sol.: When...

Resolution of a force: Sol.: When a force is resolved into two parts along the two mutually perpendicular directions, without changing the effects of it on the body, the par

Newton law of cooling, Ask question Briefly explain how, using Newton’s L...

Ask question Briefly explain how, using Newton’s Law of cooling, you may write the temperature of a cooling body as an exponential function of time#Minimum 100 words accepted#

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