Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### First

Function: first (<expr>) Returns the first part of <expr> which may result in the first element of a list, the first row of a matrix, the first term of a sum, etc. Note that `first` and its related functions, `rest` and `last`, work on the form of <expr> which is displayed not the form which is typed on input. If the variable `inflag` is set to `true` however, these functions will look at the internal form of <expr>. Note that the simplifier re-orders expressions. Thus `first(x+y)` will be `x` if `inflag` is `true` and `y` if `inflag` is `false` (`first(y+x)` gives the same results). The functions `second` .. `tenth` yield the second through the tenth part of their input argument.

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

```(%o1)                                true
(%i2) ```

### Related Examples

lsquares_estimates(ma...

first([A=1,B=2]);

Calculate

##### first-solve

eq_v1: -id1 + gr3*(v1...

eq_v2: -(gc5*(v1-v2)-...

eq_v3: i_oa1 + (gc6*(...

Calculate

##### first-matrix-ratsimp

k:100;

A: matrix([2*k, 1-k, ...

bcol: matrix(,[k*G...

Calculate

##### first-lambda-let

:lisp (defun next (li...

:lisp (next '(a b c d));

:lisp (next '(a b c d));

Calculate

##### first-matrix-ratsimp

A: matrix([2*k, 1-k, ...

bcol: matrix(,[k*G...

k=100;

Calculate

##### first-kill-ratsimp-second-solve

kill(all);

eq_out : i_oa - (in_n...

eq_in_pos : (in_pos -...

Calculate

##### first-solve

sol : first(solve ([a...

Calculate

##### first-if-lambda-map

list:[1, 2, false, 3,...

map(lambda([n], if(is...

Calculate

##### first-lambda-let

:lisp (defun next (li...

:lisp (next '(a b c d));

:lisp (next '(a b c d));

Calculate

##### first-ratsimp-solve

eq_x: -(gc1*(y-0)-ic1...

eq_v1: i_oa1 + (gc3*(...

eq_v2: -(gc2*(y-v2)-i...

Calculate 