how to evaluate with certain conditions and how to use arrays instead of separate variables



Maxima 5.27.0 http://maxima.sourceforge.net
using Lisp CLISP 2.44.1 (2008-02-23)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) 
(%i2) 
(%i3) 
(%i4) 
(%i5) 
(%i6) 
(%i7) 
(%i8) 
(%i9) 
(%i10) 
(%i11) 
(%i12) 
(%i13) 
(%i14) 
(%i15) 
(%i16) 
(%i17) 
(%i18) 
(%i19) 
(%i20) 
(%i21) 
(%i22) 
(%i23) 
(%i24) 
(%i25) 
(%i26) 
(%i27) 
(%i28) 
0.0 
[6.666666666666667E-25,5.0E-33,4.0E-41,-6.666666666666666E-26,-5.0E-34,
 -4.0E-42,6.666666666666666E-26,5.0E-34,4.0E-42]
  
0.0 
[5.0E-33,4.0E-41,3.333333333333334E-49,-5.0E-34,-4.0E-42,
 -3.333333333333334E-50,5.0E-34,4.0E-42,3.333333333333334E-50]
  
0.0 
[4.0E-41,3.333333333333334E-49,2.857142857142857E-57,-4.0E-42,
 -3.333333333333334E-50,-2.857142857142857E-58,4.0E-42,3.333333333333334E-50,
 2.857142857142857E-58]
  
-2.093568384918827E-18 
[-6.666666666666666E-26,-5.0E-34,-4.0E-42,6.8E-25,5.1E-33,4.08E-41,
 -1.335633382308905E-26,-1.003066731962037E-34,-8.034500734550383E-43]
  
-1.570107400399431E-26 
[-5.0E-34,-4.0E-42,-3.333333333333334E-50,5.1E-33,4.08E-41,3.4E-49,
 -1.001533365984485E-34,-8.023000489718743E-43,-6.694267254308821E-51]
  
-1.256046556244365E-34 
[-4.0E-42,-3.333333333333334E-50,-2.857142857142857E-58,4.08E-41,3.4E-49,
 2.914285714285714E-57,-8.011500244887104E-43,-6.685067058443511E-51,
 -5.737286203988611E-59]
  
0.0 
[6.666666666666666E-26,5.0E-34,4.0E-42,-1.335633382308905E-26,
 -1.001533365984485E-34,-8.011500244887104E-43,1.337944011735036E-26,
 1.004610678397081E-34,8.046106783943073E-43]
  
0.0 
[5.0E-34,4.0E-42,3.333333333333334E-50,-1.003066731962037E-34,
 -8.023000489718743E-43,-6.685067058443511E-51,1.004610678397081E-34,
 8.046142052111392E-43,6.712826352843728E-51]
  
0.0 
[4.0E-42,3.333333333333334E-50,2.857142857142857E-58,-8.034500734550383E-43,
 -6.694267254308821E-51,-5.737286203988611E-59,8.046106783943073E-43,
 6.712826352843728E-51,5.760477141801051E-59]
  
(%o28) done
(%i29) 


--- On Mon, 12/3/12, Peter Foelsche <foelsche at sbcglobal.net> wrote:

> From: Peter Foelsche <foelsche at sbcglobal.net>
> Subject: Re: [Maxima] how to evaluate with certain conditions and how to use arrays instead of separate variables
> To: maxima at math.utexas.edu, "Robert Dodier" <robert.dodier at gmail.com>
> Date: Monday, December 3, 2012, 7:12 AM
> it works!!!
> Thanks!
> 
> 
> 
> > > Thanks for doing my job! (grin)
> > 
> > Hey, no problem. You can buy me a beer sometime.
> 
> 
> Great idea!
> What is your current location?
> I'm located in the SF south bay area...
> 
> Peter
> 
> 
> > >? 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
> > 
> > _______________________________________________
> > Maxima mailing list
> > Maxima at math.utexas.edu
> > http://www.math.utexas.edu/mailman/listinfo/maxima
> > 
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>