Linked Questions

553
votes
19answers
139k views

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
6
votes
1answer
326 views

Help me solve for the equations of motion for a double spherical pendulum

I've been working on a project to simulate the movement of a double spherical pendulum through Lagrangian mechanics. I found this link, which has the equations of motion in. I need to solve for the ...
5
votes
2answers
856 views

How to see phase difference of two pendulum

i want to see the simulation of two uncoupled Simple Harmonic Motion (SHM) pendulum with different Lengths and released at different initial displacement angles. in this case adding one more pendulum ...
6
votes
2answers
292 views

Importing and animating images

I have three image files that make up a system similar to a mechanical arm. I wonder if it's possible to be created an assembly that I can import these images and use them in a way to generate an ...
10
votes
1answer
3k views

NDSolve::ndcf: Repeated convergence test failure. How to solve?

I am trying to simulate a system of $n$ pendulums with some friction in Mathematica 9. This is the code I am using: ...
3
votes
1answer
1k views

How to make a pendulum simulation draw the bob's trajectory?

This is the code for a simple pendulum simulation ...
0
votes
1answer
998 views

Animate spherical pendulum

I want to plot the position of Spherical pendulum. First I tried to plot the simple pendulum: ...
3
votes
1answer
753 views

Gâteaux (directional) derivatives and higher order differentials of a functional

I would like to calculate the Gâteaux derivative of a functional (i.e. a function depending on functions). A simple example for the Dirichlet functional: $L(u(x))=\int_0^1 \frac{1}{2} (u'(x))^2 dx$ ...
3
votes
1answer
441 views

Legendre Transform of a function of a 3-vector

I am trying to implement the Legendre transform of a function in Mathematica with the purpose of calculating the Hamiltonian of a system starting from the Lagrangian. I have found this page which ...
1
vote
1answer
964 views

How to put constraints on NDSolve[] solution

Assumed the following example of double pendulum by Thison (Answered by Jens): Animation of double pendulum Imagine that in the given animation(i.e. http://i.stack.imgur.com/p4TgL.gif ), the second ...
1
vote
1answer
862 views

System of Four First Order Equations for Double Pendulum using RK-4 - Code Improvements

I have spent quite a bit of time implementing the double pendulum equations at the bottom of this web site using Runge-Kutta-4. I am also quite aware of the built-in Runge-Kutta methods, but I need ...
1
vote
1answer
343 views

How to plot a function on a torus?

...
1
vote
2answers
180 views

How Can I animate rotating disk with spring pendulum?

Here begining the question and picture I want to make animation like the double pendulum here Double Pendulum @Alexander Trounev helped me for equations. But I can not do that on mathematica.Here my ...
1
vote
0answers
60 views

Help with double pendulum equations

I'm 16 and I'm pretty new to Mathematica. I've been working on a personal coding project which has some funky maths in it and I am kinda struggling. I've solved for the 4 polynomials but they answers ...