Bill Allombert on Tue, 28 Nov 2023 10:08:42 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: trying to find a simple command to list all global variables
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: trying to find a simple command to list all global variables
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Tue, 28 Nov 2023 10:08:36 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1701162518; c=relaxed/relaxed; bh=D9SJNjdRDQD4JXLOSpAnBY/9j+Loj3FBnQPrklpQQUA=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=GSOSG74wikc0qsVQLrZfI3mb3p/Eft4DNThGhxqZ4cjTKge4RDL+Qju0IOzlt1Ax9AiK7JNV7SG/9Kj2GJsTd/Z7Ir2qpuxuniGb0uHzQDt9uPUXtCyDWBR+PWZuyBw5IO+9nFoVp1vm3e0VDDYAxem1OVUxM99tzLsbaxK2OI4EmqkExQOoI/VljTaFSdnSIU8llJJ/2wxDfh04B+VO1IvlfX6fnUtd53h8iZFEl+m0dLYO5j6AGJOxs46HDZWkD9RNbaKPtn55SXF16b41y4WMGbTX8vL1hJW1UrWCIGDfNwOKMHuIvR1MrKk8ymh2EyzEAnrbhnkNsgAKb9ufz1JrZXIAKH2rhGgHNWoRYe+x/JKkm6DQdMObXfxFK3Htm7Xt2L/6YKaDgsCqixYGR2c5zW457M1tSUopv4GxqzYZ3qxGHZjqpT1MpCo8A63hXrOasg1tCPfWCwU+tQz8lJI9krva0Pnp05GpPqKyLhbOCKSGknVXcr6JaQwzOnA8lwHA9M3m2gp88s19a7jo+0/Jr/c1+BVN8AGbL6GnyurZq9ZgYfRhXRu+ST0CftwrWwsF1TSbVMVAkYHcLETBHoKPSvwjiQXU5OXZSJLZhhJoHj453wNTrTzLh5pw7OgPj6irll7efXCwzb7uRtaPa22CrqLl8KL/wiQs2KL38Gc=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1701162518; cv=none; b=uBaJsq2HdOLxl4ILzXqlZhZfA2zr6gcIpd58tb1+2b+hwGtJZFByOTygGDJjAMkcy1D6hdMbqsCnmO/CBwT5kyNKcMEsMu7HIJvPkv6phOVwnmu5st2QhKZR8jUNhQ4MbHprNFYTebW/PV2b3vwSVzzNI6RsMvaxdBVZgHhCm8ttRPpG/UdrAjD9bETkdK3FSx+sslJ6OE1oFxsObGOyeXpK0P74n+/Bhf39j+fUC6Fs0UQlQincBogLMwCfU+l9D+1MmocAECjEmWGcNBkdJgDHsJdPovyEZnfuRtXEL35BV/sxrJlevmd9K24Uc1CKp83ly5B/df5enHm7Qw+K1CL1znx8lUSA2lDzPZQym1yWn345ELm1yFaaKTOOUtbgkuTIM2ribk95Sjw9Qg6WCrfMjfOxuT5yNrstNflTmHWZzfKK7/aT2/eu/9wQ1b4uanTtB769nFRCvzkxguE03SJ9covXJTGMYLohl0B3licZGpZdtwo1lu+zT0OnDpuZfblr4UL3hRmBTpST+/TNGuSSTdA8c67Sixu5ZQovtojIvhIfNMarUFiJt3hJiASsVPi8/p8Q7oZeoNCWSF1oyrvhy+HNxANNvlk7UToGD4yXQASTROy+rafFNb2YBFFM0KGUgZY4VeKsAVVJW0FkPMqN/UanoL4fHYC34lRFIIQ=
- Authentication-results: smail; arc=none
- Delivery-date: Tue, 28 Nov 2023 10:08:42 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1701162518; bh=D9SJNjdRDQD4JXLOSpAnBY/9j+Loj3FBnQPrklpQQUA=; h=Date:From:To:Subject:References:In-Reply-To:From; b=spKoRRG/moJiyu09cY4EGLSZ5WeVrnsyDvgJKchjAyYcpt01vEUV6LdFCRGjd6li3 V49bCu1RQef8BGm9n22XAdhQuTaD+OeyX4g0aqPlVx3WNApIoiCpKc1YApzy4jpPwZ b7k3+vKLwOoT9hZRYhBmv8j1l7Q1iViJhtWvBQGquHNA2MNhjhkcF8oMkpxXVY8gUW oVMacFjAnWRvL99YIlYK8YtvYPOn6Dnmt2Os0ct8OtL1kMAnuiYCQVNEg4dVXCp2/R +0URi0lkb1UZY2zwRiHF9sQ8io85P0ntASLRpQUROP2M1aiNC9tj5FL0uJZ1cf4XxJ znz6KdAl/BAHtGzlZqQpp8glbmwqjgcSrsgV4jb6moO5++3J8VgZAx1KHGhsKjgX/4 Oxi7HuXiBhhHTsWgOOKqS4C2zkAZsd4zbZEyBtPFrupzwpeZJy4wrUgZKViTMxov1A Q0AU7d7w+8qB0TbCV5yNdA76Gt7KjJ2dptSpVrdyezx+N4RXXGFOIF6F6FsE/0SNoH NyVMn1n6EpBcteDTi6LmOBomhRlm0R4xRS8OZCcqe3OfG6ikGiRECgtbmgFIrpAeT2 DgIyTbUYfzjUrhB6BY7O5GRmb5bYnVbg6kDpA2GK9X0MZ/YsDEajmcZiQiQXOlB/8j Ot0jEKi4mOj1FDM+LShgIFyA=
- In-reply-to: <ZWWkYXMp6EuG4/PX@math.u-bordeaux.fr>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <0cf0e32d-4c09-4fb8-9742-d50106f67776@gmail.com> <ZWWieXORdbZJ9Epi@seventeen> <ZWWkYXMp6EuG4/PX@math.u-bordeaux.fr>
On Tue, Nov 28, 2023 at 09:27:13AM +0100, Karim Belabas wrote:
> * Bill Allombert [2023-11-28 09:19]:
> > On Mon, Nov 27, 2023 at 04:24:10PM -0800, American Citizen wrote:
> > > Hello:
> > >
> > > I used the Okular search feature to step through the 675 page document
> > > "https://pari.math.u-bordeaux.fr/pub/pari/manuals/2.15.4/users.pdf" to see
> > > if a command to list the global variables on the stack or heap is available.
> > >
> > > Nothing turned up that I can see (I did the scan twice)
> > >
> > > So how do you find what variables have become global?
> >
> > You can do
> > \uv
> > (x and y are always global).
> >
> > but you can use gp2c -W which will tell you where a global variable appears.
>
> A final possibility is variables().
Note that variables() only returns polynomial indeterminates, not GP variables,
and since creating a GP variable no more automatically create the corresponding
formal indeterminates, this is missing most GP variables.
Cheers,
Bill.