help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pendulum Help


From: Nelson Chung
Subject: Re: Pendulum Help
Date: Mon, 10 Oct 2011 11:16:27 -0400

Thanks much to you all

On Mon, Oct 10, 2011 at 1:14 AM, Juan Pablo Carbajal <address@hidden> wrote:
On Mon, Oct 10, 2011 at 3:46 AM, Doug Stewart <address@hidden> wrote:
>
>
> On Sun, Oct 9, 2011 at 9:32 PM, Nelson Chung <address@hidden> wrote:
>>
>> Dear all:
>>
>> Can someone tell me how to compute the motion and the period for this
>> pendulum equation?
>>
>> x" + sinx = 0.
>>
>> thanks.
>>
>> --
>>
>> Nelson
>>
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://mailman.cae.wisc.edu/listinfo/help-octave
>>
>
>
> from
> http://www.myphysicslab.com/pendulum1.html
>
> Numerical Solution
>
> To solve the equations of motion numerically, so that we can drive the
> simulation, we use the Runge-Kutta method for solving sets of ordinary
> differential equations. First we define a variable for the angular
> velocity ω = θ'. Then we can write the second order equation (1) as two
> first order equations.θ' = ωω' = − g⁄R sin θThis is the form needed for
> using the Runge-Kutta method.
>
> --
> DAS
> https://linuxcounter.net/user/206392.html
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>
>

Hi,
You can download the mechanics package there you can find a function
ready to use with ode integrators. pendulum.m
http://octave.sourceforge.net/mechanics/function/pendulum.html

Let me know if you need more help.

Cheers,


--
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/



--

Nelson



reply via email to

[Prev in Thread] Current Thread [Next in Thread]