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:

Quit

Function: quit () Terminates the Maxima session. Note that the function must be invoked as quit(); or quit()$, not quit by itself.

n: 18;
g:for i from 2 thru n-1 do (if (mod(n,i)<1) then (print(0),quit(g)) else print(1))

To stop a lengthy computation, type control-C. The default action is to return to the Maxima prompt. If *debugger-hook* is nil, control-C opens the Lisp debugger. See also debugging.

(%o1)                                true
(%i2) 

Related Examples