how to evaluate with certain conditions and how to use arrays instead of separate variables
Subject: how to evaluate with certain conditions and how to use arrays instead of separate variables
From: Robert Dodier
Date: Mon, 3 Dec 2012 07:09:41 +0000 (UTC)
On 2012-12-03, Peter Foelsche <foelsche at sbcglobal.net> wrote:
> Thanks for doing my job! (grin)
Hey, no problem. You can buy me a beer sometime.
> Error in PROGN [or a callee]: The storage for CONS is exhausted.
> Currently, 186935 pages are allocated.
> Use ALLOCATE to expand the space.
Well, I see 2 things different in this latest version, compared to the
previous version. One is that gs is not assigned a value, but it still
appears in expressions. So the end results are big expressions involving
gs, instead of numbers. Maybe that's what you want.
The other thing (and this is what's causing the out of memory error) is
that the function int1 is defined as int1(...) := integrate(...) instead
of 'integrate(...) as it was before. So it is trying to do the
integration with a huge symbolic expression, instead of doing it later
on (via ev(..., nouns)) after many of the symbols have been substituted
by numbers. I don't know what is going on in integrate that causes it to
want so much memory, but, anyway, postponing the integration does allow
the program to run to completion.
best,
Robert Dodier