[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] About create_givens and precision
From: |
Miguel García Torres |
Subject: |
[Help-gsl] About create_givens and precision |
Date: |
Fri, 2 Sep 2011 13:53:57 +0200 |
Hi all,
I am porting some GSL C functions to Java. In function
gsl_linalg_hesstri_decomp, there are several calls to
the create_givens one to calculate the cosine and sin. However when I have
very small values (~10^-15),
there are some differences and this usually causes big differences that are
propagated through the iterations.
I tried setting the key strictfp to the Java class to restrict the
floating-point <http://en.wikipedia.org/wiki/Floating-point> calculations;
however I get the
same problem.
Should I consider that values under 1e-12 should be set to 0? Did anybody
experience something similar?
If so what did you do? How can I know the precision of GSL (I am using Linux
Ubuntu)?
Thanks in advance,
PS. I didn't find this question on previus emails.
- [Help-gsl] About create_givens and precision,
Miguel García Torres <=