[libre-riscv-dev] [Bug 208] implement CORDIC in a general way sufficient to do transcendentals
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Fri Apr 17 19:37:55 BST 2020
https://bugs.libre-soc.org/show_bug.cgi?id=208
--- Comment #27 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Michael Nolan from comment #26)
> (In reply to Luke Kenneth Casson Leighton from comment #24)
> > https://pypi.org/project/bigfloat/
> >
> > i used python bigfloat about... 8 years ago, and just updated it:
> > it works well. it also happens to work in a similar way to
> > python-gmpy2 by cython-wrapping mpfr... except that the debian
> > package maintainer for python-gmpy2 is not experienced enough
> > to do multi-python-version compiles.
>
> Ok, I reverted the commit containing the gmpy stuff and added a similar one
> calculating the atan tables with bigfloat
with the debian package being a mess that's probably the sensible option
for now.
there's a trick btw, i think it's:
with bf.precision(300): # use 300 bits of precision
x = bf.atan(BigFloat(2) ....)
which is why i recommended bigfloat: you can specify extremely large
FP precision.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-riscv-dev
mailing list