bigfloat icon indicating copy to clipboard operation
bigfloat copied to clipboard

Additional operations for the standard library big.Float type

Results 10 bigfloat issues
Sort by recently updated
recently updated
newest added

Hi, Thanks for this great little package! The `bigfloat.Pow()` function seems a little too restrictive relative to the `math.Pow()` standard library equivalent for negative bases with integer exponents (which are...

Hi again, this one is more of an edge case... But for consistency with `math.Pow()` Also, for `-Inf`: `Pow(-Inf, -1) == -0`, but this also doesn't work because of #35...

e.g. in `sqrtInverse`: introduce temp and test perf.

todo

If the requested prec is much smaller than the current size of the pi cache, it could be cheaper to just compute pi from scratch.

enhancement

Sometimes we set `prec := z.Prec()` and then use `prec + 64`, in other places we set `prec := z.Prec() + 64`. Uniform.

enhancement

i.e. remove the last step if `prec` is much bigger then `dPrec` and just do a final one with `prec + guard` precision.

todo

Allow only the last bit to be off(?)

enhancement

I.E. what happens if in `Exp(z)`, `z.Float64()` returns `+Inf`?

todo