[LON-CAPA-users] loading a maxima package for use

Peter Riegler lon-capa-users@mail.lon-capa.org
Tue, 04 Dec 2007 21:10:22 +0100

Hi Jay,

mean requires load (descriptive). "load" is blacklisted.
Blacklisted are
which are considered to be potentially harmful (allowing file system or 
OS access).
I had a discussion with Gerd&Guy about it. We basically agreed on having 
  an extra attribute allowing to load trusted maxima packages. 
Unfortunately none of us seems to have time to realize this.

Maybe defining your own function is a suitable workaround:
(%i1) mymean(x):=apply("+",x)/length(x);
                                        apply("+", x)
(%o1)                     mymean(x) := -------------
(%i2) mymean([1,2,3,4]);
(%o2)                                  -


Jay Sullivan wrote:

> Let's say I want to use the "mean" function inside the 'descriptive' 
> package of maxima.
> How can I access that through loncapa. I got a "blacklisted error" when 
> I tried to put it all in one command line.
> Thanks,
> Jay

Peter Riegler
Fachhochschule Braunschweig/Wolfenbüttel
Salzdahlumer Str. 46/48, 38302 Wolfenbüttel
Tel. +49 5331 939 6314, Fax. +49 5331 939 6002
email: p.riegler@fh-wolfenbuettel.de