1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Maxima 5.47.0 Manual: Functions and Variables for Miscellaneous Options</title>
<meta name="description" content="Maxima 5.47.0 Manual: Functions and Variables for Miscellaneous Options">
<meta name="keywords" content="Maxima 5.47.0 Manual: Functions and Variables for Miscellaneous Options">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="maxima_toc.html#Top" rel="start" title="Top">
<link href="maxima_423.html#Function-and-Variable-Index" rel="index" title="Function and Variable Index">
<link href="maxima_toc.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="maxima_156.html#Miscellaneous-Options" rel="up" title="Miscellaneous Options">
<link href="maxima_160.html#Rules-and-Patterns" rel="next" title="Rules and Patterns">
<link href="maxima_158.html#Share" rel="previous" title="Share">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.indentedblock {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
div.smalllisp {margin-left: 3.2em}
kbd {font-style:oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space:nowrap}
span.nolinebreak {white-space:nowrap}
span.roman {font-family:serif; font-weight:normal}
span.sansserif {font-family:sans-serif; font-weight:normal}
ul.no-bullet {list-style: none}
body {color: black; background: white; margin-left: 8%; margin-right: 13%;
font-family: "FreeSans", sans-serif}
h1 {font-size: 150%; font-family: "FreeSans", sans-serif}
h2 {font-size: 125%; font-family: "FreeSans", sans-serif}
h3 {font-size: 100%; font-family: "FreeSans", sans-serif}
a[href] {color: rgb(0,0,255); text-decoration: none;}
a[href]:hover {background: rgb(220,220,220);}
div.textbox {border: solid; border-width: thin; padding-top: 1em;
padding-bottom: 1em; padding-left: 2em; padding-right: 2em}
div.titlebox {border: none; padding-top: 1em; padding-bottom: 1em;
padding-left: 2em; padding-right: 2em; background: rgb(200,255,255);
font-family: sans-serif}
div.synopsisbox {
border: none; padding-top: 1em; padding-bottom: 1em; padding-left: 2em;
padding-right: 2em; background: rgb(255,220,255);}
pre.example {border: 1px solid rgb(180,180,180); padding-top: 1em;
padding-bottom: 1em; padding-left: 1em; padding-right: 1em;
background-color: rgb(238,238,255)}
div.spacerbox {border: none; padding-top: 2em; padding-bottom: 2em}
div.image {margin: 0; padding: 1em; text-align: center}
div.categorybox {border: 1px solid gray; padding-top: 1em; padding-bottom: 1em;
padding-left: 1em; padding-right: 1em; background: rgb(247,242,220)}
img {max-width:80%; max-height: 80%; display: block; margin-left: auto; margin-right: auto}
-->
</style>
<link rel="icon" href="figures/favicon.ico">
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6>"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="Functions-and-Variables-for-Miscellaneous-Options"></a>
<div class="header">
<p>
Previous: <a href="maxima_158.html#Share" accesskey="p" rel="previous">Share</a>, Up: <a href="maxima_156.html#Miscellaneous-Options" accesskey="u" rel="up">Miscellaneous Options</a> [<a href="maxima_toc.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="maxima_423.html#Function-and-Variable-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Functions-and-Variables-for-Miscellaneous-Options-1"></a>
<h3 class="section">33.3 Functions and Variables for Miscellaneous Options</h3>
<a name="askexp"></a><a name="Item_003a-Miscellaneous_002fdefvr_002faskexp"></a><dl>
<dt><a name="index-askexp"></a>System variable: <strong>askexp</strong></dt>
<dd>
<p>When <code>asksign</code> is called,
<code>askexp</code> is the expression <code>asksign</code> is testing.
</p>
<p>At one time, it was possible for a user to inspect <code>askexp</code>
by entering a Maxima break with control-A.
</p>
<div class=categorybox>
Categories:<a href="maxima_424.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
·</div></dd></dl>
<a name="genindex"></a><a name="Item_003a-Miscellaneous_002fdefvr_002fgenindex"></a><dl>
<dt><a name="index-genindex"></a>Option variable: <strong>genindex</strong></dt>
<dd><p>Default value: <code>i</code>
</p>
<p><code>genindex</code> is the alphabetic prefix used to generate the
next variable of summation when necessary.
</p>
<div class=categorybox>
Categories:<a href="maxima_424.html#Category_003a-Sums-and-products">Sums and products</a>
·</div></dd></dl>
<a name="gensumnum"></a><a name="Item_003a-Miscellaneous_002fdefvr_002fgensumnum"></a><dl>
<dt><a name="index-gensumnum"></a>Option variable: <strong>gensumnum</strong></dt>
<dd><p>Default value: 0
</p>
<p><code>gensumnum</code> is the numeric suffix used to generate the next variable
of summation. If it is set to <code>false</code> then the index will consist only
of <code>genindex</code> with no numeric suffix.
</p>
<div class=categorybox>
Categories:<a href="maxima_424.html#Category_003a-Sums-and-products">Sums and products</a>
·</div></dd></dl>
<a name="gensym"></a><a name="Item_003a-Miscellaneous_002fdeffn_002fgensym"></a><dl>
<dt><a name="index-gensym"></a>Function: <strong>gensym</strong> <em><br> <tt>gensym</tt> () <br> <tt>gensym</tt> (<var>x</var>)</em></dt>
<dd>
<p><code>gensym()</code> creates and returns a fresh symbol.
</p>
<p>The name of the new symbol is the concatenation of a prefix, which defaults to
"g", and a suffix, which is an integer that defaults to the value of an internal
counter.
</p>
<p>If <var>x</var> is supplied, and is a string, then that string is used as a prefix
instead of "g" for this call to gensym only.
</p>
<p>If <var>x</var> is supplied, and is a nonnegative integer, then that integer, instead
of the value of the internal counter, is used as the suffix for this call to
gensym only.
</p>
<p>If and only if no explicit suffix is supplied, the internal counter is
incremented after it is used.
</p>
<p>Examples:
</p>
<div class="example">
<pre class="example">(%i1) gensym();
(%o1) g887
(%i2) gensym("new");
(%o2) new888
(%i3) gensym(123);
(%o3) g123
</pre></div>
</dd></dl>
<a name="packagefile"></a><a name="Item_003a-Miscellaneous_002fdefvr_002fpackagefile"></a><dl>
<dt><a name="index-packagefile"></a>Option variable: <strong>packagefile</strong></dt>
<dd><p>Default value: <code>false</code>
</p>
<p>Package designers who use <code><a href="maxima_75.html#save">save</a></code> or <code><a href="maxima_170.html#translate">translate</a></code> to create packages
(files) for others to use may want to set <code>packagefile: true</code> to prevent
information from being added to Maxima’s information-lists (e.g.
<code><a href="maxima_8.html#values">values</a></code>, <code><a href="maxima_170.html#functions">functions</a></code>) except where necessary when the file is
loaded in. In this way, the contents of the package will not get in the user’s
way when he adds his own data. Note that this will not solve the problem of
possible name conflicts. Also note that the flag simply affects what is output
to the package file. Setting the flag to <code>true</code> is also useful for
creating Maxima init files.
</p>
<div class=categorybox>
Categories:<a href="maxima_424.html#Category_003a-Translation-flags-and-variables">Translation flags and variables</a>
·</div></dd></dl>
<a name="remvalue"></a><a name="Item_003a-Miscellaneous_002fdeffn_002fremvalue"></a><dl>
<dt><a name="index-remvalue"></a>Function: <strong>remvalue</strong> <em><br> <tt>remvalue</tt> (<var>name_1</var>, …, <var>name_n</var>) <br> <tt>remvalue</tt> remvalue (all)</em></dt>
<dd>
<p>Removes the values of user variables <var>name_1</var>, …, <var>name_n</var>
(which can be subscripted) from the system.
</p>
<p><code>remvalue (all)</code> removes the values of all variables in <code>values</code>,
the list of all variables given names by the user
(as opposed to those which are automatically assigned by Maxima).
</p>
<p>See also <code><a href="maxima_8.html#values">values</a></code>.
</p>
<div class=categorybox>
Categories:<a href="maxima_424.html#Category_003a-Evaluation">Evaluation</a>
·</div></dd></dl>
<a name="rncombine"></a><a name="Item_003a-Miscellaneous_002fdeffn_002frncombine"></a><dl>
<dt><a name="index-rncombine"></a>Function: <strong>rncombine</strong> <em>(<var>expr</var>)</em></dt>
<dd>
<p>Transforms <var>expr</var> by combining all terms of <var>expr</var> that have
identical denominators or denominators that differ from each other by
numerical factors only. This is slightly different from the behavior
of <code><a href="maxima_46.html#combine">combine</a></code>, which collects terms that have identical denominators.
</p>
<p>Setting <code>pfeformat: true</code> and using <code>combine</code> yields results similar
to those that can be obtained with <code>rncombine</code>, but <code>rncombine</code> takes
the additional step of cross-multiplying numerical denominator factors.
This results in neater forms, and the possibility of recognizing some
cancellations.
</p>
<p><code>load("rncomb")</code> loads this function.
</p>
<div class=categorybox>
Categories:<a href="maxima_424.html#Category_003a-Expressions">Expressions</a>
·</div></dd></dl>
<a name="setup_005fautoload"></a><a name="Item_003a-Miscellaneous_002fdeffn_002fsetup_005fautoload"></a><dl>
<dt><a name="index-setup_005fautoload"></a>Function: <strong>setup_autoload</strong> <em>(<var>filename</var>, <var>function_1</var>, …, <var>function_n</var>)</em></dt>
<dd>
<p>Specifies that if any of <var>function_1</var>, …, <var>function_n</var> are
referenced and not yet defined, <var>filename</var> is loaded via <code>load</code>.
<var>filename</var> usually contains definitions for the functions specified,
although that is not enforced.
</p>
<p><code>setup_autoload</code> does not work for <code><a href="maxima_168.html#memoizing-functions">memoizing functions</a></code>.
</p>
<p><code>setup_autoload</code> quotes its arguments.
</p>
<p>Example:
</p>
<div class="example">
<pre class="example">(%i1) legendre_p (1, %pi);
(%o1) legendre_p(1, %pi)
(%i2) setup_autoload ("specfun.mac", legendre_p, ultraspherical);
(%o2) done
(%i3) ultraspherical (2, 1/2, %pi);
Warning - you are redefining the Macsyma function ultraspherical
Warning - you are redefining the Macsyma function legendre_p
2
3 (%pi - 1)
(%o3) ------------ + 3 (%pi - 1) + 1
2
(%i4) legendre_p (1, %pi);
(%o4) %pi
(%i5) legendre_q (1, %pi);
%pi + 1
%pi log(-------)
1 - %pi
(%o5) ---------------- - 1
2
</pre></div>
<div class=categorybox>
Categories:<a href="maxima_424.html#Category_003a-Function-definition">Function definition</a>
·<a href="maxima_424.html#Category_003a-File-input">File input</a>
·</div></dd></dl>
<a name="tcl_005foutput"></a><a name="Item_003a-Miscellaneous_002fdeffn_002ftcl_005foutput"></a><dl>
<dt><a name="index-tcl_005foutput"></a>Function: <strong>tcl_output</strong> <em><br> <tt>tcl_output</tt> (<var>list</var>, <var>i0</var>, <var>skip</var>) <br> <tt>tcl_output</tt> (<var>list</var>, <var>i0</var>) <br> <tt>tcl_output</tt> ([<var>list_1</var>, …, <var>list_n</var>], <var>i</var>)</em></dt>
<dd>
<p>Prints elements of a list enclosed by curly braces <code>{ }</code>,
suitable as part of a program in the Tcl/Tk language.
</p>
<p><code>tcl_output (<var>list</var>, <var>i0</var>, <var>skip</var>)</code>
prints <var>list</var>, beginning with element <var>i0</var> and printing elements
<code><var>i0</var> + <var>skip</var></code>, <code><var>i0</var> + 2 <var>skip</var></code>, etc.
</p>
<p><code>tcl_output (<var>list</var>, <var>i0</var>)</code>
is equivalent to <code>tcl_output (<var>list</var>, <var>i0</var>, 2)</code>.
</p>
<p><code>tcl_output ([<var>list_1</var>, ..., <var>list_n</var>], <var>i</var>)</code>
prints the <var>i</var>’th elements of <var>list_1</var>, …, <var>list_n</var>.
</p>
<p>Examples:
</p>
<div class="example">
<pre class="example">(%i1) tcl_output ([1, 2, 3, 4, 5, 6], 1, 3)$
{1.000000000 4.000000000
}
(%i2) tcl_output ([1, 2, 3, 4, 5, 6], 2, 3)$
{2.000000000 5.000000000
}
(%i3) tcl_output ([3/7, 5/9, 11/13, 13/17], 1)$
{((RAT SIMP) 3 7) ((RAT SIMP) 11 13)
}
(%i4) tcl_output ([x1, y1, x2, y2, x3, y3], 2)$
{$Y1 $Y2 $Y3
}
(%i5) tcl_output ([[1, 2, 3], [11, 22, 33]], 1)$
{SIMP 1.000000000 11.00000000
}
</pre></div>
</dd></dl>
<hr>
<div class="header">
<p>
Previous: <a href="maxima_158.html#Share" accesskey="p" rel="previous">Share</a>, Up: <a href="maxima_156.html#Miscellaneous-Options" accesskey="u" rel="up">Miscellaneous Options</a> [<a href="maxima_toc.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="maxima_423.html#Function-and-Variable-Index" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
|