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-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-log-rhs-solve

uno:3^(x+2)=5^(x);

luno:log(lhs(uno))=lo...

solve(luno,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-linsolve

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

eq2:x+2=y;

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

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

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

eq2:x+2=y;

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

Calculate

lhs-rhs-sqrt

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

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

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

Calculate

lhs-solve

eq1:x^5-3*x^4-3*x^3+9...

solve(eq1,x);

x:1;

Calculate