[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using jacobs for multivariable equations?
From: |
tessaract87 |
Subject: |
Using jacobs for multivariable equations? |
Date: |
Mon, 20 Oct 2014 11:17:03 -0700 (PDT) |
Hi all,
I'm trying to use the jacobian function jacobs from the optim package to do
a stability analysis on a system of ODEs. The equations of interest are:
u(1-u/0.2)-u*v
and
1*(u-1)*v
But when I tried to enter them into Octave and run them through jacobs, this
happens:
f = @(u,v) [u(1-u/0.2)-u*v;1*(u-1)*v];
>> pkg load optim
>> Df1=jacobs([0,0],f(u,v))
error: 'u' undefined near line 1 column 19
error: evaluating argument list element number 1
error: evaluating argument list element number 2
I'm guessing this either because a)I screwed up the formatting of the
equation when putting it into octave, or b)jacobs can't handle multivariable
equations (every example I've seen was a single variable equation). Is
there a way to get jacobs to handle equations like this? Alternatively, is
there another method of getting the jacobian?
Thanks!
--
View this message in context:
http://octave.1599824.n4.nabble.com/Using-jacobs-for-multivariable-equations-tp4667050.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Using jacobs for multivariable equations?,
tessaract87 <=