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
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.
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
opitz system in group technology

what is the main process to get steel hard

Find an approximated probability: Sixteen numbers are selected independently and at random from the interval [ 0, 1 ]. Find an approximated probability that the mean of these

Determine maximum shearing stress in shaft:   A propeller shaft 100 mm in the diameter, is 45 m long, transmits 10 MW at 80 rotation per minute. Determine maximum shearing str

Explain the Intensive Properties of a System Intensive properties are those, which have similar value for any part of the system or the properties which are independent of the

Throttle Valve: The throttle valves control the quantity of mixture supplied to the cylinder. This is controlled by throttle grip with the help of a cable. When we open throttle

construction and working of michelsons interferometer

Ratio of belt tension: For Open belt drive:   Angle of contact (θ) for larger pulley = ∏ + 2α Angle of contact (θ) for smaller pulley = ∏ - 2α For cross belt drive:

1.Two machining operations, A (3 minutes per part) and B (10 minutes per part), are performed sequentially to manufacture a part. Machines A and B produce 5% and 6% defective items

What is differential approach (differential formulation) in fluid mechanics? What are velocity and acceleration fields, give examples. Find, study and write down the differential f