RE: How to make series of variables with indexes?

Соловьев Александр Александрович <[email protected]>
Newsgroups gmane.comp.mathematics.axiom.user
Message-ID <[email protected]>
Yes, it does help. Thanks a lot. And one more question about subscript(). Why it doesn't work in sum() context? I.e.

sum(subscript(a,[i]), i=0..3)

gives 4ai instead of sum a0 + a1 + a2 ...

 
> Does

> [x^n=subscript(a,[n]) for n in 1..3]

> help you?

> Ralf

> On 07/09/2008 03:25 PM, Соловьев Александр Александрович wrote:
>> Hi, list.
>> 
>> I want to make a series of equations like this
>> 
>> x**2 + 2 =  a2
>> x**3 + 3 =  a3
>> etc
>> 
>> How could I construct variable names a1, a2 ...  in a loop?
>> 
>> Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.