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

e1:30=5*i1+5*%i*(i1-i2);

e2:0=2*i2+3*%i*i2+5*%...

e3:-20=4*i3+6*(i3-i2);

Calculate

lhs-solve-subst

var1: E[A] = 1.0e7;

var2: E[P] = 3.04e5;

var3: R[1] = .62;

Calculate

lhs-rhs-solve

gesamt:30;

v1:4;

v2:6;

Calculate

lhs-rhs-tan

lhs : ( -3*y ) / ( 4 ...

rhs : tan( -%pi / 6 );

Calculate

lhs-solve

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

solve(eq1,x);

x:3;

Calculate

lhs-log-rhs-solve

a1:1;

q:0.25;

S:0.001;

Calculate

lhs

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

lhs(liste2[4]);

Calculate

lhs-load-rhs

load ("lrats");

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

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

Calculate

lhs-solve

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

solve(eq1,x);

x:3;

Calculate