[Maxima] dynamically created symbol

Richard Fateman fateman at eecs.berkeley.edu
Thu Jun 28 08:49:46 CDT 2012


Unless there is some other requirement, doesn't this work?

  h(n):= concat(foo,n)


then h(1) creates foo1.


You can figure out more elaborate name schemes from this
model, using intern and format from lisp..

h(n):= ?intern(?format(false,"$FOO~s",n));

h(1);


there is also, in Maxima,
gensym(foo);
  but that uses its own number, not 1.



More information about the Maxima mailing list