Please help me to work out this Mathematica pendulum problem Thanks

AI Thread Summary
A Mathematica program is needed to plot the period of a simple pendulum against its amplitude, with the initial angle ranging from 0 to π/2. The differential equation θ'' = -w² * Sin(θ) is solved using NDSolve, with parameters set for gravity (g = 9.80 m/s²) and pendulum length (L = 1.00 m). The period is determined by finding successive times when θ(t) = 0, utilizing FindRoot for zero identification. The task is then repeated using Euler's method, allowing for direct tracking of θ(t) without FindRoot. Finally, both plots are combined to compare results, using the Show function for visualization.
Volant
Messages
2
Reaction score
0
Write a program in Mathematica that makes a plot of the period of a simple pendulum vs. its amplitude, as the amplitude (the initial angle from which the pendulum is released from rest) ranges from theta = 0 to theta = Pi/2. Use the built-in function NDSolve to solve the exact differential equation of the pendulum, which is theta''=-w^2*Sin(theta) where w=Sqrt(g/L) . Take the acceleration due to gravity g to be 9.80 m/s2 and the pendulum's length L to be 1.00 m. One way to find the period is to locate two successive times when theta(t) = 0 and subtract; the built-in function FindRoot is helpful for finding the zeros of a function.

Next, repeat the calculation without using the built-in function NDSolve, but instead solve the differential equation of the pendulum using Euler's method. In this case you won't even need to use FindRoot to identify the times when theta(t) = 0 since you will be stepping theta(t) along with small time increments (so it will be easy to note when theta(t) is near zero). Make the calculation of period vs. amplitude at 20 or so different amplitudes between theta = 0 to theta = Pi/2 and store the results as a list of points to plot {{theta1, T1}, {theta2, T2}, ...} – you can plot your list of points using the ListPlot function.

Then make one final plot showing the two plots you have made together, so you can see if they agree. The code I used for this is:
Show[plot1, ListPlot[plotlist, PlotMarkers->{Automatic,10}]]
where the instruction about the PlotMarkers makes the points on the ListPlot easy to see.
 
Physics news on Phys.org
Yes, really do not know how to solve it in Mathematica.
 
The rope is tied into the person (the load of 200 pounds) and the rope goes up from the person to a fixed pulley and back down to his hands. He hauls the rope to suspend himself in the air. What is the mechanical advantage of the system? The person will indeed only have to lift half of his body weight (roughly 100 pounds) because he now lessened the load by that same amount. This APPEARS to be a 2:1 because he can hold himself with half the force, but my question is: is that mechanical...
Hello everyone, Consider the problem in which a car is told to travel at 30 km/h for L kilometers and then at 60 km/h for another L kilometers. Next, you are asked to determine the average speed. My question is: although we know that the average speed in this case is the harmonic mean of the two speeds, is it also possible to state that the average speed over this 2L-kilometer stretch can be obtained as a weighted average of the two speeds? Best regards, DaTario
Some physics textbook writer told me that Newton's first law applies only on bodies that feel no interactions at all. He said that if a body is on rest or moves in constant velocity, there is no external force acting on it. But I have heard another form of the law that says the net force acting on a body must be zero. This means there is interactions involved after all. So which one is correct?
Back
Top