Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Labels

Function: labels (<symbol>) -- System variable: labels Returns the list of input, output, or intermediate expression labels which begin with <symbol>. Typically <symbol> is the value of inchar, outchar, or linechar. The label character may be given with or without a percent sign, so, for example, i and %i yield the same result.

:lisp (defun enum-interval (low high &optional p)  (let* ((result nil)         (end-result 0))    (do* ((low low (+ low 1)))      ((> low high) (if (not p) end-result (values-list end-result)))      (setf end-result (reverse (push low result))))));
:lisp (defun group (source n)  (if (zerop n) (error "zero length"))  (labels ((rec (source acc)             (let ((rest (nthcdr n source)))               (if (consp rest)                   (rec rest (cons (subseq source 0 n) acc))                   (nreverse (cons source acc))))))    (if source (rec source nil) nil)));
:lisp (defun row-sum (min max n)  (let ((list (enum-interval min max)) (result))    (values-list     (dotimes (i (length (group list n)) (values (nreverse result)))       (push        (list (nth i (group list n))              (format nil "sum: ~a" (reduce

If no labels begin with <symbol>, labels returns an empty list.

The function labels quotes its argument. The quote-quote operator defeats quotation. For example, labels (inchar) returns the input labels which begin with the current input label character.

The variable labels is the list of input, output, and intermediate expression labels, including all previous labels if inchar, outchar, or linechar were redefined.

By default, Maxima displays the result of each user input expression, giving the result an output label. The output display is suppressed by terminating the input with $ (dollar sign) instead of ; (semicolon). An output label is constructed and bound to the result, but not displayed, and the label may be referenced in the same way as displayed output labels. See also %, %%, and %th.

Intermediate expression labels can be generated by some functions. The flag programmode controls whether solve and some other functions generate intermediate expression labels instead of returning a list of expressions. Some other functions, such as ldisplay, always generate intermediate expression labels.

See also inchar, outchar, linechar, and infolists.

There are also some inexact matches for labels. Try ?? labels to see them.

(%o1)                                true
(%i2) 

Related Examples

labels

labels;

A: 7-5;

labels;

Calculate

labels-lambda

:lisp (lisp-implement...

:lisp (apropos 'carte...

:lisp (defun cartesia...

Calculate

labels-lambda

:lisp (lisp-implement...

:lisp (apropos 'carte...

:lisp (defun cartesia...

Calculate

labels-lambda

:lisp (lisp-implement...

:lisp (apropos 'carte...

:lisp (defun cartesia...

Calculate

labels-lambda-let

:lisp (lisp-implement...

:lisp (apropos 'carte...

:lisp (defun cartesia...

Calculate

labels-lambda

:lisp (lisp-implement...

:lisp (apropos 'carte...

:lisp (defun cartesia...

Calculate

labels-lambda

:lisp (lisp-implement...

:lisp (apropos 'carte...

:lisp (defun cartesia...

Calculate

labels-lambda-let

:lisp (lisp-implement...

:lisp (apropos 'carte...

:lisp (defun cartesia...

Calculate

labels-lambda-length-let

:lisp (list-all-packa...

:lisp (length (list-a...

:lisp (defun search-p...

Calculate

labels

labels;

A: 7-5;

labels;

Calculate