File: maxima_35.html

package info (click to toggle)
maxima 5.21.1-2squeeze
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 94,928 kB
  • ctags: 43,849
  • sloc: lisp: 298,974; fortran: 14,666; perl: 14,325; tcl: 10,494; sh: 4,052; makefile: 2,975; ansic: 471; awk: 24; sed: 7
file content (919 lines) | stat: -rw-r--r-- 32,074 bytes parent folder | download
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- Created on April, 24 2010 by texi2html 1.76 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people <dev@texi2html.cvshome.org>
Send bugs and suggestions to <users@texi2html.cvshome.org>

-->
<head>
<title>Maxima 5.21.1 Manual: 35. Miscellaneous Options</title>

<meta name="description" content="Maxima 5.21.1 Manual: 35. Miscellaneous Options">
<meta name="keywords" content="Maxima 5.21.1 Manual: 35. Miscellaneous Options">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.76">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
body
{
    color: black;
    background: white; 
    margin-left: 8%;
    margin-right: 13%;
}

h1
{
    margin-left: +8%;
    font-size: 150%;
    font-family: sans-serif
}

h2
{
    font-size: 125%;
    font-family: sans-serif
}

h3
{
    font-size: 100%;
    font-family: sans-serif
}

h2,h3,h4,h5,h6 { margin-left: +4%; }

div.textbox
{
    border: solid;
    border-width: thin;
    /* width: 100%; */
    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);
    /*background: rgb(200,255,255); */
    /* font-family: fixed */
}

pre.example
{
    border: 1px solid gray;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 1em;
    padding-right: 1em;
    /* background: rgb(247,242,180); */ /* kind of sandy */
    /* background: rgb(200,255,255); */ /* sky blue */
    background-color: #F1F5F9; /* light blue-gray */
    /* font-family: "Lucida Console", monospace */
}

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: 0px;
    padding-bottom: 0px;
    padding-left: 1em;
    padding-right: 1em;
    background: rgb(247,242,220);
}


-->
</style>

<link rel="icon" href="http://maxima.sourceforge.net/favicon.ico"/>
</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<a name="Miscellaneous-Options"></a>
<a name="SEC156"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="maxima_34.html#SEC155" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC157" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima_34.html#SEC152" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_36.html#SEC160" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h1 class="chapter"> 35. Miscellaneous Options </h1>

<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#SEC157">35.1 Introduction to Miscellaneous Options</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">  
</td></tr>
<tr><td align="left" valign="top"><a href="#SEC158">35.2 Share</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">                       
</td></tr>
<tr><td align="left" valign="top"><a href="#SEC159">35.3 Functions and Variables for Miscellaneous Options</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">  
</td></tr>
</table>

<p><a name="Item_003a-Introduction-to-Miscellaneous-Options"></a>
</p><hr size="6">
<a name="Introduction-to-Miscellaneous-Options"></a>
<a name="SEC157"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC156" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC158" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC156" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC156" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_36.html#SEC160" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 35.1 Introduction to Miscellaneous Options </h2>

<p>In this section various options are discussed which have a global effect
on the operation of Maxima.   Also various lists such as the list of all
user defined functions, are discussed.
</p>
<p><a name="Item_003a-Share"></a>
</p><hr size="6">
<a name="Share"></a>
<a name="SEC158"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC157" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC159" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC156" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC156" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_36.html#SEC160" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 35.2 Share </h2>
<p>The Maxima &quot;share&quot; directory contains programs and other files 
of interest to Maxima users, but not part of the core implementation of Maxima.
These programs are typically loaded via <code>load</code> or <code>setup_autoload</code>.
</p>
<p><code>:lisp *maxima-sharedir*</code> displays the location of the share directory
within the user's file system.
</p>
<p><code>printfile (&quot;share.usg&quot;)</code> prints an out-of-date list of share packages.
Users may find it more informative to browse the share directory using a file system browser.
</p>

<p><a name="Item_003a-Functions-and-Variables-for-Miscellaneous-Options"></a>
</p><hr size="6">
<a name="Functions-and-Variables-for-Miscellaneous-Options"></a>
<a name="SEC159"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC158" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="maxima_36.html#SEC160" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC156" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC156" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_36.html#SEC160" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 35.3 Functions and Variables for Miscellaneous Options </h2>

<p><a name="Item_003a-aliases"></a>
</p><dl>
<dt><u>System variable:</u> <b>aliases</b>
<a name="IDX1245"></a>
</dt>
<dd><p>Default value: <code>[]</code>
</p>
<p><code>aliases</code> is the list of atoms which have a user defined alias (set up by
the <code>alias</code>, <code>ordergreat</code>, <code>orderless</code> functions or by declaring the atom a
<code>noun</code> with <code>declare</code>).
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
 &middot;
<a href="maxima_95.html#Category_003a-Global-variables">Global variables</a>
</p>
</div>


</dd></dl>


<p><a name="Item_003a-alphabetic"></a>
</p><dl>
<dt><u>Declaration:</u> <b>alphabetic</b>
<a name="IDX1246"></a>
</dt>
<dd><p><code>alphabetic</code> is a declaration type recognized by <code>declare</code>.
The expression <code>declare(<var>s</var>, alphabetic)</code> tells Maxima to recognize
as alphabetic all of the characters in <var>s</var>, which must be a string.
</p>
<p>See also <a href="maxima_6.html#SEC24">Identifiers</a>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) xx\~yy\`\@ : 1729;
(%o1)                         1729
(%i2) declare (&quot;~`@&quot;, alphabetic);
(%o2)                         done
(%i3) xx~yy`@ + @yy`xx + `xx@@yy~;
(%o3)               `xx@@yy~ + @yy`xx + 1729
(%i4) listofvars (%);
(%o4)                  [@yy`xx, `xx@@yy~]
</pre>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
</p>
</div>


</dd></dl>


<p><a name="Item_003a-args"></a>
</p><dl>
<dt><u>Function:</u> <b>args</b><i> (<var>expr</var>)</i>
<a name="IDX1247"></a>
</dt>
<dd><p>Returns the list of arguments of <code>expr</code>,
which may be any kind of expression other than an atom.
Only the arguments of the top-level operator are extracted;
subexpressions of <code>expr</code> appear as elements or subexpressions of elements
of the list of arguments.
</p>
<p>The order of the items in the list may depend on the global flag <code>inflag</code>.
</p>
<p><code>args (<var>expr</var>)</code> is equivalent to <code>substpart (&quot;[&quot;, <var>expr</var>, 0)</code>.
See also <code>substpart</code>, and <code>op</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Expressions">Expressions</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-genindex"></a>
</p><dl>
<dt><u>Option variable:</u> <b>genindex</b>
<a name="IDX1248"></a>
</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>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Sums-and-products">Sums and products</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-gensumnum"></a>
</p><dl>
<dt><u>Option variable:</u> <b>gensumnum</b>
<a name="IDX1249"></a>
</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>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Sums-and-products">Sums and products</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-infolists"></a>
</p><dl>
<dt><u>System variable:</u> <b>infolists</b>
<a name="IDX1250"></a>
</dt>
<dd><p>Default value: <code>[]</code>
</p>
<p><code>infolists</code> is a list of the names of all of the information
lists in Maxima. These are:
</p>
<dl compact="compact">
<dt> <code>labels</code></dt>
<dd><p>All bound <code>%i</code>, <code>%o</code>, and <code>%t</code> labels.
</p></dd>
<dt> <code>values</code></dt>
<dd><p>All bound atoms which are user variables, not Maxima
options or switches, created by <code>:</code> or <code>::</code> or functional binding.
</p></dd>
<dt> <code>functions</code></dt>
<dd><p>All user-defined functions, created by <code>:=</code> or <code>define</code>.
</p></dd>
<dt> <code>arrays</code></dt>
<dd><p>All declared and undeclared arrays, created by <code>:</code>, <code>::</code>, or <code>:=</code>.
</p></dd>
<dt> <code>macros</code></dt>
<dd><p>All user-defined macro functions.
</p></dd>
<dt> <code>myoptions</code></dt>
<dd><p>All options ever reset by the user (whether or not they
are later reset to their default values).
</p></dd>
<dt> <code>rules</code></dt>
<dd><p>All user-defined pattern matching and simplification rules, created
by <code>tellsimp</code>, <code>tellsimpafter</code>, <code>defmatch</code>, or <code>defrule</code>.
</p></dd>
<dt> <code>aliases</code></dt>
<dd><p>All atoms which have a user-defined alias, created by the <code>alias</code>,
<code>ordergreat</code>, <code>orderless</code> functions or by declaring the atom as a <code>noun</code>
with <code>declare</code>.
</p></dd>
<dt> <code>dependencies</code></dt>
<dd><p>All atoms which have functional dependencies, created by the
<code>depends</code> or <code>gradef</code> functions.
</p></dd>
<dt> <code>gradefs</code></dt>
<dd><p>All functions which have user-defined derivatives, created by the
<code>gradef</code> function.
</p></dd>
<dt> <code>props</code></dt>
<dd><p>All atoms which have any property other than those mentioned
above, such as properties established by <code>atvalue</code> or <code>matchdeclare</code>, etc.,
as well as properties established in the <code>declare</code> function.
</p></dd>
<dt> <code>let_rule_packages</code></dt>
<dd><p>All user-defined <code>let</code> rule packages
plus the special package <code>default_let_rule_package</code>.
(<code>default_let_rule_package</code> is the name of the rule package used when
one is not explicitly set by the user.)
</p></dd>
</dl>

<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
 &middot;
<a href="maxima_95.html#Category_003a-Global-variables">Global variables</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-integerp"></a>
</p><dl>
<dt><u>Function:</u> <b>integerp</b><i> (<var>expr</var>)</i>
<a name="IDX1251"></a>
</dt>
<dd><p>Returns <code>true</code> if <var>expr</var> is a literal numeric integer, otherwise <code>false</code>.
</p>
<p><code>integerp</code> returns <code>false</code> if its argument is a symbol,
even if the argument is declared integer.
</p>
<p>Examples:
</p>
<pre class="example">(%i1) integerp (0);
(%o1)                         true
(%i2) integerp (1);
(%o2)                         true
(%i3) integerp (-17);
(%o3)                         true
(%i4) integerp (0.0);
(%o4)                         false
(%i5) integerp (1.0);
(%o5)                         false
(%i6) integerp (%pi);
(%o6)                         false
(%i7) integerp (n);
(%o7)                         false
(%i8) declare (n, integer);
(%o8)                         done
(%i9) integerp (n);
(%o9)                         false
</pre>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Predicate-functions">Predicate functions</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-m1pbranch"></a>
</p><dl>
<dt><u>Option variable:</u> <b>m1pbranch</b>
<a name="IDX1252"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p><code>m1pbranch</code> is the principal branch for <code>-1</code> to a power.
Quantities such as <code>(-1)^(1/3)</code> (that is, an &quot;odd&quot; rational exponent) and 
<code>(-1)^(1/4)</code> (that is, an &quot;even&quot; rational exponent) are handled as follows:
</p>
<pre class="example">              domain:real
                            
(-1)^(1/3):      -1         
(-1)^(1/4):   (-1)^(1/4)   

             domain:complex              
m1pbranch:false          m1pbranch:true
(-1)^(1/3)               1/2+%i*sqrt(3)/2
(-1)^(1/4)              sqrt(2)/2+%i*sqrt(2)/2
</pre>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Expressions">Expressions</a>
 &middot;
<a href="maxima_95.html#Category_003a-Global-flags">Global flags</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-numberp"></a>
</p><dl>
<dt><u>Function:</u> <b>numberp</b><i> (<var>expr</var>)</i>
<a name="IDX1253"></a>
</dt>
<dd><p>Returns <code>true</code> if <var>expr</var> is a literal integer, rational number, 
floating point number, or bigfloat, otherwise <code>false</code>.
</p>
<p><code>numberp</code> returns <code>false</code> if its argument is a symbol,
even if the argument is a symbolic number such as <code>%pi</code> or <code>%i</code>,
or declared to be 
<code>even</code>, <code>odd</code>, <code>integer</code>, <code>rational</code>, <code>irrational</code>, 
<code>real</code>, <code>imaginary</code>, or <code>complex</code>.
</p>
<p>Examples:
</p>
<pre class="example">(%i1) numberp (42);
(%o1)                         true
(%i2) numberp (-13/19);
(%o2)                         true
(%i3) numberp (3.14159);
(%o3)                         true
(%i4) numberp (-1729b-4);
(%o4)                         true
(%i5) map (numberp, [%e, %pi, %i, %phi, inf, minf]);
(%o5)      [false, false, false, false, false, false]
(%i6) declare (a, even, b, odd, c, integer, d, rational,
     e, irrational, f, real, g, imaginary, h, complex);
(%o6)                         done
(%i7) map (numberp, [a, b, c, d, e, f, g, h]);
(%o7) [false, false, false, false, false, false, false, false]
</pre>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Predicate-functions">Predicate functions</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-properties"></a>
</p><dl>
<dt><u>Function:</u> <b>properties</b><i> (<var>a</var>)</i>
<a name="IDX1254"></a>
</dt>
<dd><p>Returns a list of the names of all the
properties associated with the atom <var>a</var>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-props"></a>
</p><dl>
<dt><u>Special symbol:</u> <b>props</b>
<a name="IDX1255"></a>
</dt>
<dd><p><code>props</code> are atoms which have any property other than those explicitly
mentioned in <code>infolists</code>, such as specified by <code>atvalue</code>, <code>matchdeclare</code>, etc., 
as well as properties specified in the <code>declare</code> function.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
 &middot;
<a href="maxima_95.html#Category_003a-Global-variables">Global variables</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-propvars"></a>
</p><dl>
<dt><u>Function:</u> <b>propvars</b><i> (<var>prop</var>)</i>
<a name="IDX1256"></a>
</dt>
<dd><p>Returns a list of those atoms on the <code>props</code> list which
have the property indicated by <var>prop</var>.  Thus <code>propvars (atvalue)</code>
returns a list of atoms which have atvalues.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-put"></a>
</p><dl>
<dt><u>Function:</u> <b>put</b><i> (<var>atom</var>, <var>value</var>, <var>indicator</var>)</i>
<a name="IDX1257"></a>
</dt>
<dd><p>Assigns <var>value</var> to the property (specified by <var>indicator</var>) of <var>atom</var>.
<var>indicator</var> may be the name of any property, not just a system-defined property.
</p>
<p><code>put</code> evaluates its arguments. 
<code>put</code> returns <var>value</var>.
</p>
<p>Examples:
</p>
<pre class="example">(%i1) put (foo, (a+b)^5, expr);
                                   5
(%o1)                       (b + a)
(%i2) put (foo, &quot;Hello&quot;, str);
(%o2)                         Hello
(%i3) properties (foo);
(%o3)            [[user properties, str, expr]]
(%i4) get (foo, expr);
                                   5
(%o4)                       (b + a)
(%i5) get (foo, str);
(%o5)                         Hello
</pre>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-qput"></a>
</p><dl>
<dt><u>Function:</u> <b>qput</b><i> (<var>atom</var>, <var>value</var>, <var>indicator</var>)</i>
<a name="IDX1258"></a>
</dt>
<dd><p>Assigns <var>value</var> to the property (specified by <var>indicator</var>) of <var>atom</var>.
This is the same as <code>put</code>,
except that the arguments are quoted.
</p>
<p>Example:
</p>
<pre class="example">(%i1) foo: aa$ 
(%i2) bar: bb$
(%i3) baz: cc$
(%i4) put (foo, bar, baz);
(%o4)                          bb
(%i5) properties (aa);
(%o5)                [[user properties, cc]]
(%i6) get (aa, cc);
(%o6)                          bb
(%i7) qput (foo, bar, baz);
(%o7)                          bar
(%i8) properties (foo);
(%o8)            [value, [user properties, baz]]
(%i9) get ('foo, 'baz);
(%o9)                          bar
</pre>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-rem"></a>
</p><dl>
<dt><u>Function:</u> <b>rem</b><i> (<var>atom</var>, <var>indicator</var>)</i>
<a name="IDX1259"></a>
</dt>
<dd><p>Removes the property indicated by <var>indicator</var> from <var>atom</var>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-remove"></a>
</p><dl>
<dt><u>Function:</u> <b>remove</b><i> (<var>a_1</var>, <var>p_1</var>, ..., <var>a_n</var>, <var>p_n</var>)</i>
<a name="IDX1260"></a>
</dt>
<dt><u>Function:</u> <b>remove</b><i> ([<var>a_1</var>, ..., <var>a_m</var>], [<var>p_1</var>, ..., <var>p_n</var>], ...)</i>
<a name="IDX1261"></a>
</dt>
<dt><u>Function:</u> <b>remove</b><i> (&quot;<var>a</var>&quot;, operator)</i>
<a name="IDX1262"></a>
</dt>
<dt><u>Function:</u> <b>remove</b><i> (<var>a</var>, transfun)</i>
<a name="IDX1263"></a>
</dt>
<dt><u>Function:</u> <b>remove</b><i> (all, <var>p</var>)</i>
<a name="IDX1264"></a>
</dt>
<dd><p>Removes properties associated with atoms.
</p>
<p><code>remove (<var>a_1</var>, <var>p_1</var>, ..., <var>a_n</var>, <var>p_n</var>)</code>
removes property <code>p_k</code> from atom <code>a_k</code>.
</p>
<p><code>remove ([<var>a_1</var>, ..., <var>a_m</var>], [<var>p_1</var>, ..., <var>p_n</var>], ...)</code>
removes properties <code><var>p_1</var>, ..., <var>p_n</var></code>
from atoms <var>a_1</var>, ..., <var>a_m</var>.
There may be more than one pair of lists.
</p>
<p><code>remove (all, <var>p</var>)</code> removes the property <var>p</var> from all atoms which have it.
</p>
<p>The removed properties may be system-defined properties such as
<code>function</code>, <code>macro</code>, or <code>mode_declare</code>, or user-defined properties.
</p>
<p>A property may be <code>transfun</code> to remove
the translated Lisp version of a function.
After executing this, the Maxima version of the function is executed
rather than the translated version.
</p>
<p><code>remove (&quot;<var>a</var>&quot;, operator)</code> or, equivalently, <code>remove (&quot;<var>a</var>&quot;, op)</code>
removes from <var>a</var> the operator properties declared by
<code>prefix</code>, <code>infix</code>, <code>nary</code>, <code>postfix</code>, <code>matchfix</code>, or <code>nofix</code>.
Note that the name of the operator must be written as a quoted string.
</p>
<p><code>remove</code> always returns <code>done</code> whether or not an atom has a specified property.
This behavior is unlike the more specific remove functions
<code>remvalue</code>, <code>remarray</code>, <code>remfunction</code>, and <code>remrule</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Declarations-and-inferences">Declarations and inferences</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-remvalue"></a>
</p><dl>
<dt><u>Function:</u> <b>remvalue</b><i> (<var>name_1</var>, ..., <var>name_n</var>)</i>
<a name="IDX1265"></a>
</dt>
<dt><u>Function:</u> <b>remvalue</b><i> (all)</i>
<a name="IDX1266"></a>
</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>values</code>.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Evaluation">Evaluation</a>
</p>
</div>

</dd></dl>

<p><a name="Item_003a-rncombine"></a>
</p><dl>
<dt><u>Function:</u> <b>rncombine</b><i> (<var>expr</var>)</i>
<a name="IDX1267"></a>
</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>combine</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>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Expressions">Expressions</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-scalarp"></a>
</p><dl>
<dt><u>Function:</u> <b>scalarp</b><i> (<var>expr</var>)</i>
<a name="IDX1268"></a>
</dt>
<dd><p>Returns <code>true</code> if <var>expr</var> is a number, constant, or variable
declared <code>scalar</code> with <code>declare</code>, or composed entirely of numbers, constants, and such
variables, but not containing matrices or lists.
</p>
<div class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Predicate-functions">Predicate functions</a>
 &middot;
<a href="maxima_95.html#Category_003a-Vectors">Vectors</a>
 &middot;
<a href="maxima_95.html#Category_003a-Matrices">Matrices</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-setup_005fautoload"></a>
</p><dl>
<dt><u>Function:</u> <b>setup_autoload</b><i> (<var>filename</var>, <var>function_1</var>, ..., <var>function_n</var>)</i>
<a name="IDX1269"></a>
</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 array functions.
</p>
<p><code>setup_autoload</code> quotes its arguments.
</p>
<p>Example:
</p>
<pre class="example">(%i1) legendre_p (1, %pi);
(%o1)                  legendre_p(1, %pi)
(%i2) setup_autoload (&quot;specfun.mac&quot;, 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 class=categorybox>


<p>Categories:&nbsp;&nbsp;<a href="maxima_95.html#Category_003a-Function-definition">Function definition</a>
 &middot;
<a href="maxima_95.html#Category_003a-File-input">File input</a>
</p>
</div>


</dd></dl>

<p><a name="Item_003a-Rules-and-Patterns"></a>
</p><hr size="6">
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC156" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="maxima_36.html#SEC160" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_79.html#SEC331" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated by <em>Robert Dodier</em> on <em>April, 24 2010</em> using <a href="http://texi2html.cvshome.org/"><em>texi2html 1.76</em></a>.
 </font>
 <br>

</p>
</body>
</html>