[Top][All Lists]

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

Re: determinent of undefined matrix?

From: Geraint Paul Bevan
Subject: Re: determinent of undefined matrix?
Date: Sat, 11 Sep 2004 00:59:05 +0100
User-agent: Mozilla Thunderbird 0.5 (X11/20040306)

Hash: SHA1

NZG wrote:
| I want to solve the determinent of a matrix containing an unknown s
such as
| det[s 1;1 s]
| ans
|       s^2 - 1
| in Matlab I just define
| s = sym('s')
| beforehand.
| This doesn't work in Octave, what's an equivalent method?
| Does one exist?

The sym function is part of octave-forge. I don't use it often (I
usually use symbolic algebra tools for symbolic work) but using a recent
version (2004.07.07, on Debian), it does seem to be broken.

octave> s = sym('s');
octave> [s,0]
error: octave_base_value::array_value(): wrong type argument `ex'

I don't know what the cause of this is, but if you must do symbolic work
in Octave, you could try using gino:

octave> g_determinant ("[[s,1],[1,s]]")
ans = -1+s^2

If you have a lot of symbolic work to do, there is a list of several
computer algebra systems which you might find useful on the Octave wiki:

- --
Geraint Bevan

Version: GnuPG v1.2.4 (GNU/Linux)


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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