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:

Ldisplay Calculator

Ldisplay

Function: ldisplay (<expr_1>, ..., <expr_n>) Displays expressions <expr_1>, ..., <expr_n> to the console as printed output. Each expression is printed as an equation of the form lhs = rhs in which lhs is one of the arguments of ldisplay and rhs is its value. Typically each argument is a variable. ldisp assigns an intermediate expression label to each equation and returns the list of labels.

xvals: map(rhs,solve(x^2=9));
answers:x+3=0;
for i:1 while i<=(length(realroots(x^2=9))) do (mye:subst([x=xvals[i]] ,answers),ldisplay(mye));
mye;
if(is(ratsimp((mye)))) then 100;
all;

See also display.

          (%i1) e: (a+b)^3;
                                             3
          (%o1)                       (b + a)
          (%i2) f: expand (e);
                               3        2      2      3
          (%o2)               b  + 3 a b  + 3 a  b + a
          (%i3) ldisplay (e, f);
                                               3
          (%t3)                     e = (b + a)

                                 3        2      2      3
          (%t4)             f = b  + 3 a b  + 3 a  b + a

          (%o4)                      [%t3, %t4]
          (%i4) %t3;
                                               3
          (%o4)                     e = (b + a)
          (%i5) %t4;
                                 3        2      2      3
          (%o5)             f = b  + 3 a b  + 3 a  b + a

(%o1)                                true
(%i2) 

Ldisplay Example

Related Examples