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

Determine the shear stress in each section - cells, Determine the shear str...

Determine the shear stress in each section - cells: In Figure, the mean dimensions of the two cells are 100 mm × 50 mm and 50 mm square. t 1 = 3 mm,       t 2 = 6 mm,

Stress relaxation is creep related phenomenon, Stress relaxation is creep r...

Stress relaxation is creep related phenomenon: Problem: What is stress relaxation? Give example. Solution Stress relaxation is creep related phenomenon. It is los

What are the basic different air-fuel mixture, Describe carburetion. What a...

Describe carburetion. What are the basic different air-fuel mixture on which an engine can be operated ? Write a short note on sterling cycle. In an engine working on inlet pres

Define universal portable radial drills, Define universal portable radial d...

Define universal portable radial drills Drilling machine is mounted on a trolley base to have a greater degree of mobility. In order to move the machine to any position on or a

Classification of internal combustion models of engine, CLASSIFIC A TIO ...

CLASSIFIC A TIO N: 1.     In accordance to number of strokes per cycle: (a) Two stroke          (b) Four stroke. 2.     In accordance to the fuel being used: (a)

What are the reasons behind poor pick-up of motor cycle, (a) Why does engin...

(a) Why does engine overheat and what will happen if engine overheats? (b) Why engine does not start in wet or damp weather? (c) What may be the causes if engine dose not sta

Manufacturing Technology, b) Differentiate between Hot and Cold working pro...

b) Differentiate between Hot and Cold working process. What are their advantages and disadvantages? Illustrate with examples.

Graphics, offset method to draw parabola

offset method to draw parabola

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