MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

Table iterator bounds problem

  • To: mathgroup at christensen.cybernetics.net
  • Subject: [mg1715] Table iterator bounds problem
  • From: Fergal Shevlin <fshevlin at maths.tcd.ie>
  • Date: Wed, 19 Jul 1995 00:13:52 -0400
  • Organization: Dept. of Maths, Trinity College, Dublin, Ireland.

Hello,

I get the following strange error with MMA 2.2 on Mac and RS6000:

In[4]:=  Table[Sin[x],{x, -Pi/2, Pi/2, Pi/10}]

                             Pi   Pi  Pi
Table::iterb: Iterator {x, -(--), --, --} does not have appropriate bounds.
                             2    2   10

It's the increment that isn't liked, because without it everything's fine:

In[4]:=   Table[Sin[x],{x, -Pi/2, Pi/2}]

Out[4]= {-1, -Cos[1], -Cos[2], -Cos[3]}


It happens after I load a package I wrote which doesn't even use Iterators.
Can anybody think of what might be going wrong? I don't particularly 
want to post the contents of the long, badly-written package, I'll mail it
if anybody's interested. 

A few ideas about what might be causing the Iterator to be redefined would be 
appreciated.

Thanks,
Fergal.
-- 
====================================================================
Fergal Shevlin       http://www.cs.tcd.ie/www/fshevlin/fshevlin.html
Dept. of Computer Science         Phone: +353-1-6081209 Fax: 6772204
Trinity College, Dublin 2, Ireland.         Fergal.Shevlin at cs.tcd.ie


  • Prev by Date: Re: Simple problem for math wiz
  • Next by Date: Re: Mathematica --> C convertor, anyone?
  • Previous by thread: Reducing Table Run Time
  • Next by thread: Re: Table iterator bounds problem