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:

Bothcoef Calculator

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.

expr: z^3 + a1*z*w + a2*z^2*w + a3*w^2 + a4*z*w^2 + a6*w^3;
bothcoef (subst (expr,z,expr), z);

Example:

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

(%o1)                                true
(%i2) 

Bothcoef Example

Related Examples

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-subst

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

bothcoef (subst (expr...

Calculate

bothcoef-coeff-rhs

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

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

Calculate

bothcoef-coeff-rhs

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

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

Calculate

bothcoef-subst

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

bothcoef (subst (expr...

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