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

Algebra Calculator

#### Search: #### Bothcoef

Function: bothcoef (<expr>, <x>) Returns a list whose first member is the coefficient of <x> in <expr> (as found by `ratcoef` if <expr> is in CRE form otherwise by `coeff`) and whose second member is the remaining part of <expr>. That is, `[A, B]` where `<expr> = A*<x> + B`. Example:

```          (%i1) islinear (expr, x) := block ([c],
c: bothcoef (rat (expr, x), x),
is (freeof (x, c) and c # 0))\$
(%i2) islinear ((r^2 - (x - r)^2)/x, x);
(%o2)                         true```

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

### Related Examples

? bothcoef;

Calculate

##### bothcoef-coeff-rhs

rhs(coeff(y-10*x-40=0));

bothcoef(y=10*x-40,x);

Calculate

##### bothcoef-expand-subst

expr: z^3 + a1*z*w + ...

expr : subst (expr,z,...

bothcoef (expand (exp...

Calculate

##### bothcoef-expand-subst

expr: z^3 + a1*z*w + ...

bothcoef (expand(subs...

Calculate

##### bothcoef-expand

bothcoef(expand( (B-2...

Calculate

##### bothcoef-expand-subst

expr: z^3 + a1*z*w + ...

expr : subst (expr,z,...

bothcoef (expand (exp...

Calculate

##### bothcoef-subst

expr: z^3 + a1*z*w + ...

bothcoef (subst (expr...

Calculate

##### bothcoef-subst

expr: z^3 + a1*z*w + ...

bothcoef (subst (expr...

Calculate

##### bothcoef-subst

expr: z^3 + a1*z*w + ...

bothcoef (subst (expr...

Calculate

##### bothcoef-subst

expr: z^3 + a1*z*w + ...

bothcoef (subst (expr...

Calculate 