Error message: Too many contexts



On 5/2/07, Barton Willis <willisb at unk.edu> wrote:

> (a) deleted all calls to ev,
> (b) removed all calls to ratsimp,
> (c) inserted one call to trigreduce,
> (d) deleted unused code: EP1:genmatrix(ev(aa),DD,DD); g:2.
>
> I'm guessing that (a) was the most important; I doubt (d) is necessary.
> I don't know about (b) and (c). Try not to use 'ev.' I'll let others
> comment about the evils of ev.

The "Too many contexts" is a side effect of some logic
in the integration code. $INTEGRATE eventually calls the aptly-named
MONSTERTRIG which calls $INTEGRATE as a special case,
and then it just goes round and round. See src/sin.lisp.

The call to trigreduce is the key point here. It modifies the
integrand so as to avoid triggering the MONSTERTRIG bug.

For some reason ev comes in for a lot of criticism.
I don't think that is warranted; certainly not in this case.

HTH
Robert