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

Cost, why are future costs not always relevant?

why are future costs not always relevant?

Mounting systems for the welding head-carriage mounted type, Mounting Syst...

Mounting Systems For The  Welding Head-Carriage mounted type In this set up, the welding head is mounted on a movable carriage. The carriage is mounted on rails and powered by a

Testing of resistance welds, TESTING OF RESISTANCE WELDS There are a nu...

TESTING OF RESISTANCE WELDS There are a number of destructive and non destructive tests available for testing the welds obtained by resistance welding. Radiographic or Ultrason

Show drain systems used in plant, Q. Show drain systems used in plant? ...

Q. Show drain systems used in plant? Process/power plants usually have a variety of different drain systems to collect the different types of liquid effluent. One of these is u

Cooling period of furnace pipe, We shutdown our furnace and always encounte...

We shutdown our furnace and always encountered crack on our piping at the weld joints. I investigated that upon shutdown the furnace cracking, our maintenance immediately remove th

What is a pneumatic system?, Pneumatic system is a system that uses air to ...

Pneumatic system is a system that uses air to power something. For example, have you seen the tube systems at bank drive-up tellers? Air is used to drive the tubes back and forth f

Hierarchical system structure, Ask question #Minimum 100 words awrite short...

Ask question #Minimum 100 words awrite short note on the the hierarchical system structure involving various level

Find maximum torque which can be transmitted by belt drive, Find maximum to...

Find maximum torque which can be transmitted by belt drive: A belt is stretched over the two identical pulleys having diameter D meter. The initial tension in belt throughout

Motion of connected bodies, Motion of connected bodies: Analyze motio...

Motion of connected bodies: Analyze motion of connected bodies that is connected by pulleys. Sol: The given figure shows a light and inextensible string passing over sm

Calculate resonant frequency, A vibrating system having mass 1.2 Kg is susp...

A vibrating system having mass 1.2 Kg is suspended by a spring of stiffness 1000 N/m and it is put to harmonic excitation of 10 N. Assuming viscous damping, Calculate : (a) R

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