Subject: extracting al the atoms from an expression
From: Stavros Macrakis
Date: Wed, 19 Dec 2007 14:34:00 -0500
Check the documentation for listofvars. This does not include all atoms, but
all *variables*. Thus listofvars(a[1]^2/b) returns [a[1],b], not [a,1,2,b].
-s
On Dec 19, 2007 1:41 PM, S. Newhouse <sen1 at math.msu.edu> wrote:
> Hello,
> Is there a simple way to extract all of the atoms from an expression,
> say as a list?
>
> For instance, suppose we have the expression p: a*x^2*y^3 +b*x*y
>
> I would like to extract as a list: [a,x,y,b]
>
> TIA,
> -sen
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>