1 ;; Expose some properties of double floating point numbers to Maxima.
2 ;; Note: floatbits is one plus the number of bits in the fractional part.
7 (defmvar $largest_float most-positive-flonum
)
8 (setf (get '$largest_float
'assign
) 'neverset
)
10 (defmvar $least_positive_float least-positive-flonum
)
11 (setf (get '$least_positive_float
'assign
) 'neverset
)
16 (defun $bigfloat_eps
()
17 (let ((r ($bfloat
(div 1 (expt 2 fpprec
)))))
18 (list (first r
) (incf (second r
)) (third r
))))