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-rhs-sqrt

g:sqrt(x-3)-1=0 /* E...

g1:g+1 /* Links un...

g2:lhs(g1)**2=rhs(g1)...

Calculate

lhs-realroots

a4:81;

a7:2187;

g0:81=a1+q^3;

Calculate

lhs-rhs-subst

eq1:a_x[t]=1+a_x[t+1]...

eq2:A_xm[t]=Cwa_x[t]/...

V[t]:=A_xm[t]+\beta_m...

Calculate

lhs-rhs

r: x^2+2*x=4;

lhs(r);

rhs(r);

Calculate

lhs-load-rhs

load ("lrats");

Vw[t]:=Aw_xm[t]+(%bet...

eq:Vw[t]=Cwi_x[t]/Dwi...

Calculate

lhs-linsolve-rhs

eq1:x*4+y-2=y;

eq2:x+2=y;

linsolve([eq1,eq2],[x...

Calculate

lhs-load-rhs

load ("lrats");

eq:A_x[0]/a_12xm[0]=(...

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

Calculate

lhs-rhs

r : x^2+2*x=4 ;

lhs(r) ;

rhs(r) ;

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-load-rhs

load ("lrats");

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

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

Calculate