On 19 October 2011 12:04, Rui Pereira <r...@math.uminho.pt> wrote:
> Hello,
>
> I have a question about OCTAVE.
> I normally use Matlab and you can use symbolic toobox which allows you to
> simplify
> symbolic variables.
> Is there in OCTAVE anything similar?
> For instance in Matlab if I write:
>
> "syms x1 x2
> f=sin(x1)*sin(x1)+cos(x1)*cos(x1)+x2*x2*x1
> simplify(f)
> "
> I obtain,
>
> "f =
>
> x1*x2^2 + cos(x1)^2 + sin(x1)^2
>
>
> ans =
>
> x1*x2^2 + 1
>  "
>
> How can I do the same in GNU OCTAVE?
>
> Thanks a lot,
> Rui Pereira

Hi,

There is the symbolic package (part of the octave-forge packages, I'm
CC'ing this to its mailing-list), see
http://octave.sourceforge.net/symbolic/index.html which may do some of
the stuff you want. It doesn't have simplify() though, only expand(),
and it may be missing some others. If you are interested,
contributions for any package are always welcomed.

You should be able to install the package with 'pkg install -forge
symbolic' (if you're using a version older than 3.4, you'll need to
download the package manually from the octave-forge site).

Carnë

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to