[Maxima] extracting al the atoms from an expression
Stavros Macrakis
macrakis at alum.mit.edu
Wed Dec 19 13:34:00 CST 2007
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.math.utexas.edu/pipermail/maxima/attachments/20071219/89113033/attachment.htm
More information about the Maxima
mailing list