Re: $gensym

Barton Willis via Maxima-discuss <[email protected]>
Newsgroups gmane.comp.mathematics.maxima.general,gmane.lisp.gcl.devel
Message-ID <BL3PR17MB6043079B5F11D77A4E14D3EAB6ABA@BL3PR17MB6043.namprd17.prod.outlook.com>
Oh, sorry---I sent a blank email, I think.  Likely I intended to say that if you use new_variable to define 1000s of new symbols, the fact database can grow so large that you might see some operators slow.

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

From: Barton Willis via Maxima-discuss<mailto:[email protected]>
Sent: Sunday, November 5, 2023 12:32 PM
To: [email protected]<mailto:[email protected]>; Camm Maguire<mailto:[email protected]>; Robert Dodier<mailto:[email protected]>; [email protected]<mailto:[email protected]>
Cc: <[email protected]><mailto:[email protected]>
Subject: Re: [Maxima-discuss] $gensym

Non-NU Email



Sent from Mail<https://urldefense.com/v3/__https:/go.microsoft.com/fwlink/?LinkId=550986__;!!PvXuogZ4sRB2p-tU!FkzpjlVkFwPdRnVt6x_7xkNRUNu0OhNTwGMUSJL2WJE130yzp2wat7hDVEkx2sSyn7nmbtUbz41DVmiyYu010Mn0I4Ga10J4mw$> 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
41E7F313E6FD4D938277DFC680EDAF24.png (image/png, 140 B) - not displayed
56492FFAA7EB4233B3DD83D8980A0CAA.png (image/png, 159 B) - not displayed
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.