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:

Print Calculator

Print

Function: print (<expr_1>, ..., <expr_n>) Evaluates and displays <expr_1>, ..., <expr_n> one after another, from left to right, starting at the left edge of the console display.

for n:1 thru 10 do(kill(h),h[i,j]:=random(5)+1,A:genmatrix(h,3,3),X:[x,y,z],b:[random(5)+1,random(5)+1,random(5)+1],C:list_matrix_entries(A.X),R:linsolve([C[1]=b[1],C[2]=b[2],C[3]=b[3]], [x,y,z]),print(C[1]=b[1],C[2]=b[2],C[3]=b[3],R));

The value returned by print is the value of its last argument. print does not generate intermediate expression labels.

See also display, disp, ldisplay, and ldisp. Those functions display one expression per line, while print attempts to display two or more expressions per line.

To display the contents of a file, see printfile.

          (%i1) r: print ("(a+b)^3 is", expand ((a+b)^3), "log (a^10/b) is",
                radcan (log (a^10/b)))$
                      3        2      2      3
          (a+b)^3 is b  + 3 a b  + 3 a  b + a  log (a^10/b) is

                                                        10 log(a) - log(b)
          (%i2) r;
          (%o2)                  10 log(a) - log(b)
          (%i3) disp ("(a+b)^3 is", expand ((a+b)^3), "log (a^10/b) is",
                radcan (log (a^10/b)))$
                                     (a+b)^3 is

3 2 2 3 b + 3 a b + 3 a b + a

log (a^10/b) is

10 log(a) - log(b)

There are also some inexact matches for print. Try ?? print to see them.

(%o1)                                true
(%i2) 

Print Example

Related Examples

print-solve

ec1: x+2=7;

solve (ec1,x);

print("El valor de x ...

Calculate

print

/** QUINTELA, Iana Po...

fxi[7.2,7.1,6,5];

x:3;

Calculate

print

a: 8/9;

print(a);

Calculate

print

a=1;

b=2;

c=a+b;

Calculate

print

print ("I was called ...

Calculate

print-subst

wertetabelle (term, v...

wertetabelle (x, x,...

Calculate

print-taylor

eq1: -(1/2)*((12-3*z*...

eq2: taylor(eq1,z,-1,4);

print(eq2);

Calculate

print-split

answer: "x=1 or x=2";

eq: split(answer,"or");

print(eq[1]);

Calculate

print-solve

Vl_n1 = (2*L/h)*Il_n1...

Vl_n1 = (1/gl)*Il_n1 ...

solve(Vl_n1 = (2*L/h)...

Calculate

print-solve

print("Equazione");

eq: 25*Oi=24*Oa;

sol: solve(eq, Oa);

Calculate