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:

Lhs Calculator

Lhs

Function: lhs (<expr>) Returns the left-hand side (that is, the first argument) of the expression <expr>, when the operator of <expr> is one of the relational operators < <= = # equal notequal >= >, one of the assignment operators := ::= : ::, or a user-defined binary infix operator, as declared by infix.

eq1:x^5-3*x^4-3*x^3+9*x^2+2*x-6=0;
solve(eq1,x);
x:1;
lhs(eq1);
x^5-3*x^4-3*x^3+9*x^2+2*x-6;

When <expr> is an atom or its operator is something other than the ones listed above, lhs returns <expr>.

See also rhs.

Examples:

          (%i1) e: aa + bb = cc;
          (%o1)                     bb + aa = cc
          (%i2) lhs (e);
          (%o2)                        bb + aa
          (%i3) rhs (e);
          (%o3)                          cc
          (%i4) [lhs (aa < bb), lhs (aa <= bb), lhs (aa >= bb),
                 lhs (aa > bb)];
          (%o4)                   [aa, aa, aa, aa]
          (%i5) [lhs (aa = bb), lhs (aa # bb), lhs (equal (aa, bb)),
                 lhs (notequal (aa, bb))];
          (%o5)                   [aa, aa, aa, aa]
          (%i6) e1: (foo(x) := 2*x);
          (%o6)                     foo(x) := 2 x
          (%i7) e2: (bar(y) ::= 3*y);
          (%o7)                    bar(y) ::= 3 y
          (%i8) e3: (x : y);
          (%o8)                         x : y
          (%i9) e4: (x :: y);
          (%o9)                        x :: y
          (%i10) [lhs (e1), lhs (e2), lhs (e3), lhs (e4)];
          (%o10)               [foo(x), bar(y), x, x]
          (%i11) infix ("][");
          (%o11)                         ][
          (%i12) lhs (aa ][ bb);
          (%o12)                         aa

(%o1)                                true
(%i2) 

Lhs Example

Related Examples

lhs-solve

eq1:\pai_*12=(Cwi_x[t...

eq2:\pai=(\pai_+\beta...

eq3:\pai=\pai_+\beta/...

Calculate

lhs

e:12+4;

lhs(e);

Calculate

lhs-ratsubst-rhs

a_xm[t]:=(Nwi[x+t]-Nw...

eq:a_xm[t]=1+Dwi[x+t+...

f:lhs(eq)-rhs(eq);

Calculate

lhs

r:3*x+2=4;

lhs(r);

Calculate

lhs

r:3*x+2=4;

lhs(r);

Calculate

lhs-rhs

f:x=((4*x-3)/(2*x-1));

lhs(x=((4*x-3)/(2*x-1...

f:x=-x;

Calculate

lhs-load-rhs

load ("lrats");

eq:%pi-%pi_0=%gamma*(...

f:rhs(eq)-lhs(eq);

Calculate

lhs

liste2: [z=-3, x=-1, ...

lhs(liste2[4]);

Calculate

lhs-load-rhs

load ("lrats");

a_12xm[t]:=(N_x[t]-N_...

eq:a_12xm[t]=(13+11*D...

Calculate

lhs-load-rhs

load ("lrats");

AwP_xm[t]:=(M__x[t]-M...

eq:AwP_xm[t]=C__x[t]/...

Calculate