Linked Questions

528
votes
19answers
132k 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 ...
5
votes
2answers
674 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
284 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
2k 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: ...
0
votes
1answer
927 views

Animate spherical pendulum

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

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

This is the code for a simple pendulum simulation ...
3
votes
1answer
697 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
341 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
762 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 ...
0
votes
1answer
891 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
258 views

How to plot a function on a torus?

...
1
vote
2answers
147 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 ...