Elementary numerical methods and programming

Assignment Help MATLAB Programming
Reference no: EM131296639 , Length:

Elementary Numerical Methods and Programming

This project involes determining the dynamics of the double pendulum with a sliding base (see figure above). Each link is assumed to be of square cross section.

1345_Figure3.jpg


Write a MATLAB program that solves for y¯ over the interval t = 0 s to t = 4 s using three different methods: the Euler method, the mid-point method (2nd Order Runge- Kutta), and the classical 4th Order Runge-Kutta method.

To evaluate the effect of your step size (h) on the results for each of the three methods, use the following six values of h (units of seconds): 0.02, 0.01, 0.005, 0.0025, 0.00125, and 0.000625.

For step sizes 0.01s and smaller, calculate the approximate percent relative error in θ1 at t = 4 s between the current step size and the next largest step size.

Turn in a report that contains the following:

1. Title page, including the title of the project and your name

2. Introduction and objectives section:
- Summarize the problem and state the goals, including what you are trying to find, the ranges of values of t and h to be used, etc.

3. Program design section
- Describe the overall structure of your program
- If you used any portions of code from another source (for example, a textbook), cite the source and describe any modifications you made to the code.

- Describe how you solved for θ¨1 and θ¨2 in the system of equations (backslash operator, inv(A), or others)

- Describe how you solved for y using the specified values of h

4. Plots. Your report must contain the following five figures with titles, properly labeled axes, and legends where appropriate:

- Figure 1: On a single graph, plot the approximate percent relative error in θ1 at t = 4 s vs. step size h for the three different methods.
- Figure 2: θ1 vs. t using the largest value of h (0.02 s)
- Figure 3: θ2 vs. t using the largest value of h (0.02 s)
- Figure 4: θ1 vs. t using the smallest value of h (0.000625 s)
- Figure 5: θ2 vs. t using the smallest value of h (0.000625 s)

5. Discussion and Conclusions

- Based on Figure 1, what can you learn about the effects of h on the results obtained with the three different methods?
- What can you learn by comparing Figure 2 to Figure 4?
- What can you learn by comparing Figure 3 to Figure 5?
- If you had to design this system, which differential equation solution method would you use and why?

Attachment:- Project.pdf

Verified Expert

The work is about solving the given set of mechanical equation using numerical integration methods. The solution first starts with the introduction about work and then we decided the solution of the differential equation. First solving differential equation using hand calculations and then substituting numerical values. In last MATLAB simulation is done and graphs are plotted. finally we have conclusion and references

Reference no: EM131296639

Questions Cloud

Comment on the professionalism of the procedures : Comment on the professionalism of the procedures used to make the advertising claim. Why do you believe the researchers performed the data transformations described?
Complete rhonda hill federal income tax return : Use the following information to complete Rhonda Hill's 2014 federal income tax return. If information is missing, use reasonable assumptions to fill in the gaps
Calculate a grocery price inflation rate : Suppose you calculate a grocery price inflation rate. Using the arguments presented in the chapter, explain possible sources of upward bias in the rate you calculate, relative to the actual trend of food prices.
Is margaret going to be a good professional interviewer : Margaret Murphy O'Hara was fatigued.- Is Margaret going to be a good professional interviewer?- What should Mary Zagorski tell Margaret?
Elementary numerical methods and programming : MECH 3010: Elementary Numerical Methods and Programming - Calculate the approximate percent relative error in θ1 at t = 4 s between the current step size and the next largest step size.
What fieldwork challenges you expect to arise in a survey : Imagine that you were asked to help prepare for this survey. What fieldwork challenges would you expect to arise in a survey such as this, to be carried out by inexperienced fieldworkers?
Why was dso obtained analytically rather than graphically : Why was ΔSo obtained analytically rather than graphically?Do you expect melting of TPP to be endothermic or exothermic? Why? Justify your answer using no more than 3 complete sentences. Does your data and results confirm or deny your expectations ..
What is the law of diminishing marginal productivity : What is the law of diminishing marginal productivity? How does the law of diminishing marginal productivity affect the cost of productions? Can you provide an example from your workplace?
What is the value per share of the companys stock : Assuming the company continues its current growth rate, what is the value per share of the company's stock? Under this growth rate assumption, what is your estimate of the stock price?

Reviews

len1296639

12/1/2016 2:52:41 AM

Similar to an assignment on your website, with just one dimension changed - This project involes determining the dynamics of the double pendulum with a sliding base (see figure above). Each link is assumed to be of square cross section.

Write a Review

MATLAB Programming Questions & Answers

  Evaluate the function at a range of x values

Write a function file, that accepts values of x as inputs and outputs the value of y when the input is passed through the following function. Evaluate the function at a range of x values from 0 to 1 with 143 elements.

  Model of the entrepreneurial process

What are the stages described in the model of the entrepreneurial process? What are the factors that give birth to a new enterprise and influence how it develops from an idea to a viable enterprise?

  Natural frequencies of vibration of a uniform beam

Natural frequencies of vibration of a uniform beam clamped at one end and free at the other are solutions of the equation - output explain how you know your program has actually found the correct "physically meaningful" roots within the expected err..

  Write program that implements lu factorisation algorithm

Write a program that implements the LU factorisation algorithm 2.3, with partial pivoting, given in the Text and in the supplementary section with MATLAB versions of the algorithms.

  Design a filter that meets the required specifications

Design a filter that meets the above required specifications. Then try to design a better filter, according to the bonus specifications. Additional points will be added to that filter score, as indicated in the bonus specifications section.

  Write a simple program that stores the high temperatures

A meteorological company wants you to write a simple program that stores the high temperatures and low temperates for each of the months of the year. After consulting with trusted programming partners, you come up with a great idea

  Read the file a line at a time

Write the modified text file with the same name as the original file, but preprended with 'new_'. For instance, if the input filename was 'data.txt', the output filename would be 'new_data.txt'.

  Design a matlab application that has transformer power ratin

Design a MATLAB application that has the following input data:Transformer power rating (VA), Transformer voltage ratings (VH and VL) Open-Circuit test results: VO, IO, and PO Short-Circuit test results: VSC, ISC, and PSC. Identify on which side each ..

  Control design using matlab

Control Design using Matlab,  Please try and explain the characteristic of all the plots and graphs.   Import all the required data in word of simply write in the script itself.

  Does the root directory have any subdirectories

Does the root directory have any subdirectories you cannot search as an ordinary user? Does the root directory have any subdirectories you cannot read as a regular user? Explain.

  Calculate the integration along the given path

define the integrand using the given definition as Integrand - Find a parametric representation of C using Matlab

  Matlab program to calculate the rest of the coefficients

Step One: For the design specifications of your filter, see the excel file for specifications (UDO). You need to demonstrate for the first two iterations( n=0 & n=1), by hand, the calculation of the coefficients. Step Two: Develop a Matlab prog..

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