[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-math] Re: [Axiom-developer] Summing over a list
From: |
Gabriel Dos Reis |
Subject: |
Re: [Axiom-math] Re: [Axiom-developer] Summing over a list |
Date: |
23 May 2007 19:18:38 -0500 |
"Bill Page" <address@hidden> writes:
[...]
| I would really like to write it like this:
|
| (5) -> macro Sum(x,z) == reduce(+,[x for variable(z) in segment(z)])
|
| Line 1: macro Sum(x,z) == reduce(+,[x for variable(z) in segment(z)])
| ..........................................A
| Error A: syntax error at top level
| Error A: Possibly missing a IN
| 2 error(s) parsing
Do you need a macro there or do you want the syntax to have less
restrictions there?
-- Gaby