bfloat



On 10/20/13 5:07 AM, Henry Baker wrote:
> Isn't it about time to separate Maxima's "bfloat" package & make it
> a 'standard' Common Lisp extension.  This would eliminate the need
> for a whole new set of functions and names which already exist in
> Common Lisp for hacking floating point representations.
It is mostly separable,  but I've redone it a bit at least twice, once 
for mockmma for sure.
and probably again for a generic arithmetic package.
A perhaps more useful setup would be to first  link to the MPFR package,
and use that.  (which I've done).  In the world of bigfloats it is much 
more tempting
to use commands like
mpfr_add(target,a,b,rounding_mode)   rather than

(setq target (generic_+  a b  rounding_mode)

the second is easy to implement if you have the first.
If you have the first, you can compile much better code.


>
> I, for one, would love the convenience of having bfloats in a
> non-Maxima Common Lisp.
>
> At 01:43 AM 10/20/2013, Adam Majewski wrote:
>> Hi,
>>
>> Is it possible to get exponent of bigflot number ?
>>
>> For example :
>> a:5.88235294117647b-2;
>>
>> I want to find its exponent ( here -2 ).
?third(%);  gives  you the BASE 2 exponent.
Will that do?
or log(a)/log(10.0)
Will that do?

RJF



>>
>> TIA
>>
>> Adam
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima