extracting values from equations



thanks, that's what I was after.

Ruben

On 20/10/2007, at 1:17 PM, Robert Dodier wrote:

> On 10/19/07, Ruben Henner Zilibowitz <rzilibowitz at yahoo.com.au> wrote:
>
>> I have a list of results from a function call in the following form:
>> [x=1,x=2,...,x=53] and I want to get a list of just the numbers by
>> themselves without having to manually get them by hand. That is I
>> wish to get the list [1,2,...,53]. What is the best way to achieve
>> this in maxima?
>
> Ruben, try this. Assuming your list of equations is L,
>
> map (rhs, L);
>
> rhs => right-hand side of an equation
> map => apply a function to each element of a list
>
> Hope this helps,
>
> Robert Dodier