Adam Ginsburg wrote:
Hi folks,
I'm trying to write a ray-tracing code for which high precision is
required. I also need to use square roots. However, math.sqrt and
numpy.sqrt seem to only use single-precision floats. Is there a
simple way to make sqrt use higher precision? Alternately,
מקורית-
מאת: numpy-discussion-boun...@scipy.org בשם Adam Ginsburg
נשלח: ש 17-אוקטובר-09 20:08
אל: numpy-discussion@scipy.org
נושא: [Numpy-discussion] double-precision sqrt?
Hi folks,
I'm trying to write a ray-tracing code for which high precision is
required. I also need to use square roots
On Sat, Oct 17, 2009 at 12:08 PM, Adam Ginsburg
adam.ginsb...@colorado.eduwrote:
Hi folks,
I'm trying to write a ray-tracing code for which high precision is
required. I also need to use square roots. However, math.sqrt and
numpy.sqrt seem to only use single-precision floats. Is there a
2009/10/17 Adam Ginsburg adam.ginsb...@colorado.edu:
My code is actually wrong but I still have the problem I've
identified that sqrt is leading to precision errors. Sorry about the
earlier mistake.
I think you'll find that numpy's sqrt is as good as it gets for double
precision. You can
Hi again, I apologize, the mistake was entirely my own. Sqrt's do the
right thing
Adam
On Sat, Oct 17, 2009 at 12:17 PM, Adam Ginsburg
adam.ginsb...@colorado.edu wrote:
My code is actually wrong but I still have the problem I've
identified that sqrt is leading to precision errors.