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("Hey");

Calculate

print-string-values

:lisp (dotimes (i 9) ...

:lisp (defun mkstr (&...

:lisp (defun symb (&r...

Calculate

print-taylor

f(z):=1/(1+z^2)^2;

taylor(f(z),z,%i,10);

print("the residue is...

Calculate

print

print(10^-1);

Calculate

print

cos2(x) := (cos(x))^2;

%a = cos2(90);

print(%a);

Calculate

print-solve

f(x):= (17+17+23+24+1...

solve(f(x));

print ();

Calculate

print

x /* sei die Anzahl d...

for x:1 thru 20000 do...

print(kn);

Calculate

print

cos2(x) := (cos(x))^2;

a = cos2(90);

print(a);

Calculate

print

print("ingrese su ecu...

Calculate

print

print("x",1," = ",5);

Calculate