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.

sqfr(x^3-9);
remainder(expand((x^3+1)^3-2),a^3-9,a);
h:expand((x^2+2*x+5)^2*(x-1)^3*(x+2)*(x+1)^1);
g:gcd(h,diff(h,x));
c[1]:rat(h/g);
d[1]:rat(diff(h,x)/g-diff(c[1],x));
i:1;
while c[i]#1 do (/*print("c[",i,"]=",c[i]),*//*print("d[",i,"]=",d[i]),*/f[i]:gcd(c[i],d[i]),if f[i]#1 then (print("f[",i,"]=",f[i])),c[i+1]:rat(c[i]/f[i]),d[i+1]:rat(d[i]/f[i]-diff(c[i+1],x)),i:i+1);

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

print ("Arg1", arg2);

Calculate

print

m=1500;

v=35;

E=m*v^2;

Calculate

print

:lisp (dotimes (i 9) ...

Calculate

print-solve

f(x)=2.1*x^5-0.9*x^3+...

xn:f(-1.52);

print(xn);

Calculate

print

x:30;

print(x^3-1);

Calculate

print-sin-taylor

taylor(sin(x),x,0,5);

?print(%);

Calculate

print

x: x1 + d0 * t;

y: y1 + d1 * t;

z: z1 + d2 * t;

Calculate

print

:lisp (print (machine...

Calculate

print

mesA : 12;

mes : 0;

while mesA<mes do ...

Calculate

print-split

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

eq: split(answer,"=");

print(eq[1]);

Calculate