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-part-rhs-simp-solve-sqrt

p1:a^2 + 3^2 = b^2+4^2;

p2:(s-a)^2+3^2=c^2+5^2;

p3:(s-b)^2+4^2=(s-c)^...

Calculate

lhs-solve-subst

var1: E[A] = 1.0e7;

var2: E[P] = 3.04e5;

var3: R[1] = .62;

Calculate

lhs

eq1: 4*x+5*y-3*z=-40;

eq2: 4*x-5*y+3*z=-10;

eq3: -2*x+4*z=-4;

Calculate

lhs-subst

var1: E[A] = 1.0e7;

var2: E[P] = 3.04e5;

var3: R[1] = .62;

Calculate

lhs-plot2d-rhs
plot2d([lhs(x),rhs(x)],[x,1.2,1.3]);

lhs(x) := x^((x+1)^(x...

rhs(x) := (x+2)^((x+1...

plot2d([lhs(x),rhs(x)...

Calculate

lhs-linsolve-plot2d
plot2d(lhs(eq2),[x,0,10]);

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

eq2:x+2=y;

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

Calculate

lhs-plot2d
plot2d(lhs(x^2-2*x*y+y^2),[x,-40,40],[y,-40,40]);

plot2d(lhs(x^2-2*x*y+...

Calculate

lhs-numer-realroots

a4:81;

a7:2187;

g1:81=a1+q^3;

Calculate