Special variables: Difference between revisions

Content deleted Content added
No edit summary
GP and PARI
Line 272:
tolist topara ucpboxdraw
unboxfkeys unboxskeys winmax </pre>
 
=={{header|PARI/GP}}==
There are three special variables in GP: <code>Pi</code> (3.14...), <code>Euler</code> (Euler's gamma), and <code>I</code> (the imaginary unit).
 
PARI has many special variables. Probably the most important is <code>avma</code>, the current stack pointer, and the related <code>top</code> and <code>bot</code>; see section 4.3 of the User's Guide to the PARI Library.
 
Other important special variables are:
* Universal objects <code>gen_0</code>, <code>gen_1</code>, <code>gen_2</code>, <code>gen_m1</code>, <code>gen_m2</code>, <code>ghalf</code>, and <code>gnil</code>. (The manual erroneously omits the last on this list.) These can be identified with <code>is_universal_constant()</code>. Note that <code>gen_I</code> is ''not'' a universal object but a function.
* Defaults: <code>DEBUGLEVEL</code> and <code>DEBUGMEM</code>
* Prime-related variables <code>_maxprime</code> (traditionally accessed via <code>maxprime()</code>) and <code>diffptr</code>
* Others: <code>precdl</code>, <code>overflow</code>, <code>hiremainder</code>, ...
 
The PARI developer's guide lists two more:
* <code>PARI_SIGINT_block</code>: When this is nonzero, SIGINT is blocked.
* <code>PARI_SIGINT_pending</code>: When this is nonzero, a SIGINT has been blocked but not yet handled.
 
=={{header|PureBasic}}==