[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Symbolic expand function doesn't always do anything
From: |
Geraint Paul Bevan |
Subject: |
Re: Symbolic expand function doesn't always do anything |
Date: |
Mon, 13 Sep 2004 17:05:50 +0100 |
User-agent: |
Mozilla Thunderbird 0.7.1 (X11/20040715) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Benjamin Sapp wrote:
| octave:47> expand( (x-vpa("1"))^vpa("3"))
| ans =
|
| -1+x^3-3*x^2+3*x
|
| It's a bit cumbersome but I don't think there's a better solution.
|
| Good luck,
| Ben.
|
I seem to be mentioning gino a lot lately - symbolic questions are
becoming popular on the list. If you install gino[1], you can expand the
expression in a slightly less cumbersome manner because it works with
Octave strings rather than trying to interpret expressions:
octave> g_expand ('(x-1)^3')
ans = -1+3*x+x^3-3*x^2
[1] gino: http://sourceforge.net/projects/mtt/
- --
Geraint Bevan
http://www.mech.gla.ac.uk/~gbevan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iEYEARECAAYFAkFFxV4ACgkQcXV3N50QmNN3NgCfZwj2FbrkSuBXxb6rHjz80lk4
UY0AnjmBofO/GyRxz/wfhRZlnuNmitIh
=zeFN
-----END PGP SIGNATURE-----
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Symbolic expand function doesn't always do anything, edA-qa mort-ora-y, 2004/09/13
- Re: Symbolic expand function doesn't always do anything, Benjamin Sapp, 2004/09/13
- Re: Symbolic expand function doesn't always do anything,
Geraint Paul Bevan <=
- Re: Symbolic expand function doesn't always do anything, edA-qa mort-ora-y, 2004/09/13
- Re: Symbolic expand function doesn't always do anything, Jonathan Stickel, 2004/09/13
- Re: Symbolic expand function doesn't always do anything, edA-qa mort-ora-y, 2004/09/14
- CASs vs. octave numerics (was: Re: Symbolic expand function doesn't always do anything), Jonathan Stickel, 2004/09/14
- CASs vs. octave numerics (was: Re: Symbolic expand function doesn't always do anything), John W. Eaton, 2004/09/14
- Re: CASs vs. octave numerics (was: Re: Symbolic expand function doesn't always do anything), Joe Koski, 2004/09/14
Re: Symbolic expand function doesn't always do anything, Paul Kienzle, 2004/09/13