Determining the dynamics of the double pendulum

Assignment Help MATLAB Programming
Reference no: EM131743505

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.

67_figure.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 = 4s 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?

6. A printout of your code

Verified Expert

This project is related to determining the dynamics of the double pendulum with a sliding base. 1st order ODE is formulated for the equation of motion of the double pendulum. MATLAB inbuilt function ODE45 and Non-inbuilt function Euler, RK2 and RK4 are used to solve 1st order ODE. This problem is solved by MATLAB and report is made by MSWord.

Reference no: EM131743505

Questions Cloud

Relationship to capitalism and democracy : Does the size and growth of the economies of the two nations have any relationship to capitalism and democracy?
Specify the input and output binary values in the encoder : The bus controlled by the parallel arbitration logic shown in Fig. is initially idle. Devices 2 and 3 then request the bus at the same time.
How to spot fake news by eugene kiely and lori robertson : How to Spot Fake News By Eugene Kiely and Lori Robertson and Study: Most Students Cannot Distinguish Fake and Real News.
What does it mean to be deaf in noise : What does it mean to be deaf in noise, Reflect on what it might be like to have this disorder
Determining the dynamics of the double pendulum : MECH 3010: Elementary Numerical Methods and Programming - determining the dynamics of the double pendulum with a sliding base.
Necessity of access and potential consequences : Explain data accessibility and provide an example that indicates the necessity of access and potential consequences if there is lack of access to health data.
Edmundson characterization of the contemporary university : How does Edmundson's characterization of the contemporary university compare with your own college experience?
Data comprehensiveness and data relevancy in healthcare : Compare and contrast data comprehensiveness and data relevancy in healthcare. Give an example that shows how they are different.
Explain the concept of management by objectives : Explain the concept of management by objectives and explain how it is used in organizations

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Compute approximations of the largest eigenvalue

Write a Matlab code implementing the power method to compute approximations of the largest eigenvalue λN of L and corresponding eigenfunctions. Use N = 500 and apply the algorithm to h-2TN

  Define the ideology of the pid block diagrams

I have this on an article that i can send to you and would want a soft copy of the saved designed in matlab and an analysis and interpretation of the result as a mini report. i would like this be done as soon as possible. The ideology of the PID b..

  Write program that representing a month-day and year

How to write a program to determine the day of the week - write a program that inputs three integers representing a month, day, and year. For example, 5 12 2015 represents May 12, 2015.

  Write a functions

The function range basis takes a matrix A as input, and outputs a basis (again written as columns) for the range space of A.

  Will compute the value of each piece of clothing.

write a script in MATLAB that will compute the value of each piece of clothing.

  Estimate the numerical wave speed

Scheme and try a couple of values for α, one close to 1 and the other not. Convince yourself that a smaller Δt is not necessarily a better choice.

  Does the threshold increase or decrease with axon diameter

Write down your threshold amplitude and duration values in a table and enter into an mfile. Plot the current versus duration. This is called strength-duration curve.

  Write a function in matlab

write a function in MATLAB

  Functions to encode the categorical attribute values

Implement specific MATLAB functions to encode the categorical attribute values to numeric values. For example, column 1 consists of only categorical values "a" and "b", and so they can be encoded as "1" and "2" respectively. The function source co..

  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.

  Calculate and analyze the probability of error for mpsk

Calculate and analyze the probability of error for MPSK under AWGN - Derive mathematically step-by-step the probability of error of MPSK under AWGN where M=2 and M=4;

  Design an optimal equiripple glp fir filter

Design a filter that meets all specifications, and show your results in support. Comment on the path your design process took, in particular on observations made and actions taken on the basis thereof.

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