Matlab Question, Mechanical Engineering

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
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.
Posted Date: 11/13/2012 9:07:21 PM | Location : United States

Related Discussions:- Matlab Question, Assignment Help, Ask Question on Matlab Question, Get Answer, Expert's Help, Matlab Question Discussions

Write discussion on Matlab Question
Your posts are moderated
Related Questions
Define the following : (a) Boot Strap Air Evaporative System (b) Simple VCR System (c) Advantage and disadvantage of VCR system over Air Refrigeration System (d) Reduce

GAS METAL ARC WELDING (GMAW) GMAW is abbreviation for Gas shielded Metal Arc Welding. Here fusion is achieved by an electric arc formed between work piece and process is called

In the drawing, the weight of the block on the table is 380 N and that of the hanging block is 215 N. Ignore all frictional effects, and assuming the pulley to be massless.

What is Two Way Punching Shear? Two Way Punching Shear In columns, generally the tendency of the column is to punch through the footing.  This also is to be considered in de

Question 1: Retail design tends to be rapid turnover business. Your potential client needs a window display for his retail sports wear shop for the summer sales. The assumed bu

Q. Corrosion resistance of Zirconium? Zirconium offers excellent corrosion resistance to most oxidizing and reducing acids and virtually all alkalis. However, it is not resist

why there is a different angular velocity in the two cranks of a drag link mechanism?

Illustrate the assumptions made in Euler's theory. Determine the expression for crippling load for a long column when one end of the column is fixed and other end is hinged.

USAGE OF SPECIAL TOOL: The common tools used in repair and maintenance of motorcycles were introduced to you in previous sections. Now, we shall learn about some special tools and

The attached figure depicts an indirectly fired gas turbine engine. In the gas turbine engine, air is compressed to a high pressure and then heat is added. The high pressure, high