Hi.
Thank you for attention to my message.
If we use conversion to floating point then in some cases for expression of
kind 1/10^n, n-natural number, result is not strict:
fpprec:16;
(%i84) float(1/10);
(%o84) 0.1
*(%i90) float(1/1000000);
(%o90) 9.999999999999999E-7*
*(%i94) float(1/10000000000);
(%o94) 9.999999999999999E-11
(%i95) float(1/100000000000);
(%o95) 9.999999999999999E-12*
*(%i98) float(1/100000000000000);
(%o98) 9.999999999999999E-15*
*(%i100) float(1/10000000000000000);
(%o100) 9.999999999999999E-17*
*(%i103) float(1/10000000000000000000);
(%o103) 9.999999999999999E-20*
*(%i104) float(1/100000000000000000000);
(%o104) 9.999999999999999E-21
(%i105) float(1/1000000000000000000000);
(%o105) 9.999999999999999E-22*
*(%i107) float(1/100000000000000000000000);
(%o107) 9.999999999999999E-24
(%i108) float(1/1000000000000000000000000);
(%o108) 9.999999999999999E-25
Is it possible to suppress such kind of conversion? The aim is to have
result 1.0E-n for all natural n.
How to use lisp - float function (not Maxima $float) in file .mac or .lisp
(not in command line)?
Best regards,
Mihail denisenko
*