Re: $gensym
Henry Baker <[email protected]>
| Newsgroups | gmane.comp.mathematics.maxima.general,gmane.lisp.gcl.devel |
|---|---|
| Message-ID | <[email protected]> |
Re: new_variable Cool! How come the 'gensym' documentation doesn't mention 'new_variable' ? -----Original Message----- From: Barton Willis <[email protected]> Sent: Nov 5, 2023 10:05 AM To: Henry Baker <[email protected]>, Camm Maguire <[email protected]>, Robert Dodier <[email protected]>, [email protected] <[email protected]> Cc: <[email protected]> <[email protected]> Subject: RE: [Maxima-discuss] $gensym You might be able to use the CL function gensym to define a function that does what you want; see http://clhs.lisp.se/Body/f_gensym.htm Alternatively: (%i7) load(to_poly)$ (%i8) new_variable('real); (%o8) %r510 (%i9) new_variable('complex); (%o9) %c511 (%i10) featurep(%,'complex); (%o10) true (%i11) new_variable('integer); (%o11) %z512 (%i12) featurep(%,integer); (%o12) true --Barton _______________________________________________ Maxima-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/maxima-discuss