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:

Rhs Calculator

Rhs

Function: rhs (<expr>) Returns the right-hand side (that is, the second 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: M = M*O + A*N*O -B*N;
eq2: N = b*N*O + C*M +D;
eq3: O = F*M+E*N+G-b*(M+N)*O;
sol:solve([eq1,eq2],[M,N]);
rhs(sol[1]);
ratsimp (%)

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

See also lhs.

Examples:

          (%i1) e: aa + bb = cc;
          (%o1)                     bb + aa = cc
          (%i2) lhs (e);
          (%o2)                        bb + aa
          (%i3) rhs (e);
          (%o3)                          cc
          (%i4) [rhs (aa < bb), rhs (aa <= bb), rhs (aa >= bb),
                 rhs (aa > bb)];
          (%o4)                   [bb, bb, bb, bb]
          (%i5) [rhs (aa = bb), rhs (aa # bb), rhs (equal (aa, bb)),
                 rhs (notequal (aa, bb))];
          (%o5)                   [bb, bb, bb, bb]
          (%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) [rhs (e1), rhs (e2), rhs (e3), rhs (e4)];
          (%o10)                  [2 x, 3 y, y, y]
          (%i11) infix ("][");
          (%o11)                         ][
          (%i12) rhs (aa ][ bb);
          (%o12)                         bb

(%o1)                                true
(%i2) 

Rhs Example

Related Examples

rhs-solve-subst

f1:a1=(x1/2+x2+x3)*x1;

f2:a2=(x2/2+x3)*x2;

f3:a3=(x2*x3+x1*x3+x1...

Calculate

rhs-solve

circle(x0,y0,r):=(x-x...

Cx:0;

Cy:0;

Calculate

rhs-solve

f1:a1=(x1/2+x2+x3)*x1;

f2:a2=(x2/2+x3)*x2;

f3:a3=(x2*x3+x1*x3+x1...

Calculate

rhs-solve

circle(x0,y0,r):=(x-x...

Cx:0;

Cy:0;

Calculate

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

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

rhs-solve

f1:a1=(x1/2+x2+x3)*x1;

f2:a2=(x2/2+x3)*x2;

f3:a3=(x2*x3+x1*x3+x1...

Calculate

rhs-solve

f1:a1=(x1/2+x2+x3)*x1;

f2:a2=(x2/2+x3)*x2;

f3:a3=(x2*x3+x1*x3+x1...

Calculate

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

rhs-solve-subst

f1:a1=(x1/2+x2+x3)*x1;

f2:a2=(x2/2+x3)*x2;

f3:a3=(x2*x3+x1*x3+x1...

Calculate