The Maxima on-line user's manual

Algebra 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`.

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) ```

Related Examples

rhs-solve

eq1: I2=I1+IF+IP;

eq2: Vmax=Vout+RP*IP;

eq3: Vout=Vc+RF*IF;

Calculate

rhs-solve

eq1: If + I1 = I2;

eq2: Vout = Vc + If*Rf;

eq3: Vmax = Vc + I1*R1;

Calculate

rhs

"The result is a list...

l:[[x=1,y=1],[x=-1,y=...

l[1];

Calculate

rhs-solve-subst

f1:1/f=1/b+1/g;

f2:f/g=ff/gg;

m:rhs(solve(f1,g)[1]);

Calculate

rhs-solve

/*Functions*/deg_to_r...

sin_deg (x) := sin(de...

cos_deg (x) := cos(de...

Calculate

rhs-solve

xCM: (mR*xR + mB*xB +...

xCM1: (mR*(d+xR) + mB...

d: rhs(solve(xCM1=xCM...

Calculate

mb: 11;

mp: .393;

d: .15;

Calculate

a : 0;

b : - 3;

c : 8;

Calculate

rhs-solve

f1:1/f=1/g+1/b1;

f2:d/p=b1/(b-b1);

solve(f2,b1);

Calculate

rhs-solve

eq1: I2=I1+If;

eq2: Vout=Vc+RF*IF;

eq3: Vmax=Vc+R1*I1;

Calculate