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:

Allbut Calculator

Allbut

-- Keyword: allbut works with the part commands (i.e. part, inpart, substpart, substinpart, dpart, and lpart). For example,

          (%i1) expr : e + d + c + b + a;
          (%o1)                   e + d + c + b + a
          (%i2) part (expr, [2, 5]);
          (%o2)                         d + a

expr : e + d + c + b + a;
 part (expr, [2, 5]);
 expr : e + d + c + b + a;
 part (expr, allbut (2, 5));
 [aa : 11, bb : 22, cc : 33, dd : 44, ee : 55];
 kill (allbut (cc, dd));
 [aa, bb, cc, dd];

while

          (%i1) expr : e + d + c + b + a;
          (%o1)                   e + d + c + b + a
          (%i2) part (expr, allbut (2, 5));
          (%o2)                       e + c + b

allbut is also recognized by kill.

          (%i1) [aa : 11, bb : 22, cc : 33, dd : 44, ee : 55];
          (%o1)                 [11, 22, 33, 44, 55]
          (%i2) kill (allbut (cc, dd));
          (%o0)                         done
          (%i1) [aa, bb, cc, dd];
          (%o1)                   [aa, bb, 33, 44]

kill(allbut(<a_1>, <a_2>, ...)) has the effect of kill(all) except that it does not kill the symbols <a_1>, <a_2>, ... .

(%o1)                                true
(%i2) 

Allbut Example

Related Examples

allbut-constant-cos-declare-derivabbrev-diff-mainvar-sin-solve-subst-true

derivabbrev:true ;

declare (t, mainvar);

declare (m, constant);

Calculate

allbut-append-constant-cos-declare-derivabbrev-diff-mainvar-sin-solve-subst-true

derivabbrev:true ;

declare (t, mainvar);

declare (m, constant);

Calculate

allbut-kill-part

expr : e + d + c + b ...

part (expr, [2, 5]);

expr : e + d + c + b...

Calculate

allbut-append-constant-cos-declare-derivabbrev-diff-mainvar-sin-solve-subst-true

derivabbrev:true ;

declare (t, mainvar);

declare (m, constant);

Calculate

allbut-append-constant-cos-declare-derivabbrev-diff-mainvar-sin-solve-subst-true

derivabbrev:true ;

declare (t, mainvar);

declare (m, constant);

Calculate

allbut-constant-cos-declare-derivabbrev-diff-mainvar-sin-solve-true

derivabbrev:true ;

declare (t, mainvar);

declare (m, constant);

Calculate

allbut-kill-part

expr : e + d + c + b ...

part (expr, [2, 5]);

expr : e + d + c + b...

Calculate