### The Maxima on-line user's manual

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

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",
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",
(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) ```

### Related Examples

##### print

print ("ingrese la ec...

Calculate

##### print-solve

print("Equazione");

eq: 25*Oi = 24*Oa;

sol: solve(eq, Oa);

Calculate

##### print-subst

wertetabelle (term, v...

wertetabelle (x^2+1...

Calculate

##### print

print("hola culo");

Calculate

##### print-solve

print("Equazione");

eq: 25*Oi=24*Oa;

sol: solve(eq, Oa);

Calculate

##### print

:lisp (dotimes (i 10)...

Calculate

##### print

input(a);

print("mierda",a);

Calculate

##### print

print ("ingrese la ec...

expr : f(x,y) ;

expr : input ("f(x,y)...

Calculate

##### print

print("ingrese su ecu...

Calculate

##### print-sum

n:10;

x:sum(5^(x*2),x,0,n);

print(X);

Calculate