On Wed, Jul 8, 2009 at 9:09 PM, smichr<smi...@gmail.com> wrote:
>
>
>
> On Jul 8, 10:23 pm, Ondrej Certik <ond...@certik.cz> wrote:
>
>> Ah, yes, I think it should be called fastlog2. Fredrik, what do you think?
>>
> And someone who has used this should probably comment on the need to
> have the sign ignored: the fastlog for both 16 and -16 would be 4 as
> it is written now. *Should* the sign be ignored or should a value
> error be raised or should the docstring say that the fastlog of the
> absolute value of x is being computed?

It's intended to compute an upper bound for the base-2 logarithm of
the absolute value of a number. This is used to determine how much
precision is required for various calculations. Whether it's exact too
high by 1 or 2 bits doesn't really matter.

It's also strictly intended as an internal function, so it probably
doesn't need much more elaborate documentation or a more precise name
(unless its present role is unclear to someone trying to understand
the internals of the evalf module).

Fredrik

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to