Re: $gensym

Barton Willis via Maxima-discuss <[email protected]>
Newsgroups gmane.comp.mathematics.maxima.general,gmane.lisp.gcl.devel
Message-ID <BL3PR17MB60436CFB129AE257AFDA933BB6ABA@BL3PR17MB6043.namprd17.prod.outlook.com>

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows


________________________________
From: Henry Baker <[email protected]>
Sent: Sunday, November 5, 2023 12:16:56 PM
To: Barton Willis <[email protected]>; Camm Maguire <[email protected]>; Robert Dodier <[email protected]>; [email protected] <[email protected]>
Cc: <[email protected]> <[email protected]>
Subject: RE: [Maxima-discuss] $gensym

Non-NU Email
________________________________

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<https://urldefense.com/v3/__http://clhs.lisp.se/Body/f_gensym.htm__;!!PvXuogZ4sRB2p-tU!Bkj4NkGPyXKJCkOlvACSKCtbJG0PkfoU6vaEWDxl1RSC3dz7XGKrNWKojcFr479KSCsBc8ckvZzAIALy$>



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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.