How to extract polynomial from the



hi dileep,

> But it returns all the arguments and I just need the first argument.
> Dileep
>
> args (sum (f(i), i, 1, n));
> (%o26)                          [f(i), i, 1, n]

when L is a list, L[n] returns the n'th element (counting from 1).

so you can write foo : args (sum (f(i), i, 1, n)); foo[1];

there are other, slightly different, ways to accomplish this same task.
one way that is generally very useful is

 args (sum (f(i), i, 1, n));
 %[1];

% = most recent %o expression.

hth
robert dodier