[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Symbolic expand function doesn't always do anything
From: |
edA-qa mort-ora-y |
Subject: |
Symbolic expand function doesn't always do anything |
Date: |
Mon, 13 Sep 2004 16:28:23 +0200 |
User-agent: |
Mozilla Thunderbird 0.6 (X11/20040502) |
I'm using the OctaveForge integration of the GiNaC symbolic library and
having some trouble using the "expand" function.
I want is to perform the polynomial expansion:
>x = sym( "x" )
>expand( (x-1)^2 )
ans = (x-1)^2
I want to get
ans = 1 + x^2 - 2*x
If you do this form, it works:
>expand( (x-1) * (x-1) )
ans = 1.0+x^2-(2.0)*x
Using ginsh with expand produces the desired results, so I'm assuming it
is an Octave integration peculariaty:
ginsh> expand( (x-1)^3 );
-1-3*x^2+x^3+3*x
--
edA-qa mort-ora-y
Idea Architect
http://disemia.com/
-------------------------------------------------------------
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 <=
- 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, 2004/09/13
- 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