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.

/*Berechnen der ersten Zweierpotenz der Form 999... ab 2^n*/finde_zweierpotenz(n):=block(		zweier_potenz: 2^n,	found: false,	L:[0,0,0],	while not(found) do [		zweier_potenz: zweier_potenz*2,		n:n+1,		number: zweier_potenz,		zehner_potenz: 10, 		while number>0 do [			rest: mod(number,zehner_potenz),			ziffer: rest / (zehner_potenz / 10),			L[3]: L[2],			L[2]: L[1],			L[1]: ziffer,			zehner_potenz : zehner_potenz * 10,			number : number - rest		],				if is(equal(L,[9,9,9])) then [			found: true,			print(n),			print(zweier_potenz)		]		]);
		finde_zweierpotenz(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-solve

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

xn:f(-1.52);

print(xn);

Calculate

print

print(info@maxima-onl...

Calculate

print-solve

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

xn=f(-1.52);

print(xn);

Calculate

print-solve

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

xn=f(-1.52);

print(xn);

Calculate

print-solve

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

xn=f(-1.52);

print(xn);

Calculate

print

a = zeros(100,2);

print(zeros(100,2));

Calculate

print-tan-trigexpand

print(trigexpand(tan(...

Calculate

print-true

?print(true);

Calculate

print-true

?print(true);

Calculate