15 lines
340 B
Plaintext
15 lines
340 B
Plaintext
/* Maxima has inf (positive infinity) and minf (negative infinity) */
|
|
|
|
declare(x, real)$
|
|
|
|
is(x < inf);
|
|
/* true */
|
|
|
|
is(x > minf);
|
|
/* true */
|
|
|
|
/* However, it is an error to try to divide by zero, even with floating-point numbers */
|
|
1.0/0.0;
|
|
/* expt: undefined: 0 to a negative exponent.
|
|
-- an error. To debug this try: debugmode(true); */
|