Convert %union(...) to list
- Subject: Convert %union(...) to list
- From: Pepe Sanchez
- Date: Thu, 11 Apr 2013 17:04:56 +0200
Hi!
If the point is just
> soln is %union([r = 0],[r = -2^(3/2)*a/3],[r = 2^(3/2)*a/3])
>
> I want
>
> [r = 0,r = -2^(3/2)*a/3,r = 2^(3/2)*a/3]
perhaps this could help:
(%i1)
soln: %union([r = 0],[r = -2^(3/2)*a/3],[r = 2^(3/2)*a/3])$
flatten(makelist(part(soln,i),i,1,length(soln)));
(%o1) [r=0,r=-(2^(3/2)*a)/3,r=(2^(3/2)*a)/3]
Best
________________________________________________________________
Jose Sanchez-Marin.
Universitat de Valencia.
Institut de Ciencia Molecular (ICMol).
Cat. Jose Beltran Martinez, 2 Phone: +34 96 354 4444
E-46980 Paterna FAX: +34 96 354 3576
Spain e-mail: Jose.Sanchez at uv.es
_________________________________________________________________