From help-request at octave dot org Mon Sep 13 11:14:25 2004 Subject: Re: Symbolic expand function doesn't always do anything From: Geraint Paul Bevan To: edA-qa mort-ora-y CC: Benjamin Sapp , help@octave.org Date: Mon, 13 Sep 2004 17:05:50 +0100 -----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 -------------------------------------------------------------