help-octave
[Top][All Lists]
Advanced

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

Re: Solving unknowns of kinematic equations in octave.


From: Juan Pablo Carbajal
Subject: Re: Solving unknowns of kinematic equations in octave.
Date: Wed, 1 May 2013 19:08:36 +0200

On Wed, May 1, 2013 at 5:45 PM, ZachTM <address@hidden> wrote:
> Hello I am fairly new to octave but I have been playing around with fsolve.
> I want to make an octave program that can solve for the 5 possible unknowns
> in the kinematic equations. (vi,vf,a,d, and t)
>
> Would it be possible to somehow define these equations:
> <http://octave.1599824.n4.nabble.com/file/n4652529/KE1-3.jpg>
> And then when I define 3 or more of the variables it could solve for the
> other two?  I just dont know how I would get this to work with fsolve.  I
> could make an octave program that picks which equation it will use for every
> unknown but I would like to extend this to work with any set of equations
> and unknowns (within reason of course).  If the user doesn't give enough
> variables I would return an error.
>
> So can anyone tell me if this would be even possible?  And if fsolve would
> be appropriate to use here?  Any responses are greatly appreciated!
>
> Thanks,
> Zach
>
>
>
>
>
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/Solving-unknowns-of-kinematic-equations-in-octave-tp4652529.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

Most of your equations (I do not know what's d!) are linear in the
variables you want, except for t and v_0 and v_f. So whenever you knw
those values you can solve a linear problem, i.e. matrix inversion.
When any of the "nonlinear" variables is unknown you could solve the
proper equation by hand and just return the solution. This accounts
for just a few cases. You can of course, use a nonlinear solver, but
it sounds to me that is a lazy (and probably slow) way of solving the
problem.


reply via email to

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