Bugzilla – Attachment 46872 Details for
Bug 37326
New LINEST fails for some special values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Correct place, which has produced the erroneous zeros
LINESTfail.patch (text/plain), 517 bytes, created by
Regina Henschel
on 2011-05-18 12:12:49 UTC
(
hide
)
Description:
Correct place, which has produced the erroneous zeros
Filename:
MIME Type:
Creator:
Regina Henschel
Created:
2011-05-18 12:12:49 UTC
Size:
517 bytes
patch
obsolete
>--- interpr5.cxx.original 2011-04-06 15:10:04.000000000 +0200 >+++ interpr5.cxx 2011-05-18 19:20:27.093750000 +0200 >@@ -1940,14 +1940,10 @@ > return fResult; > } > >+// no mathematical signum, but used to switch between adding and subtracting > double lcl_GetSign(double fValue) > { >- if (fValue < 0.0) >- return -1.0; >- else if (fValue > 0.0) >- return 1.0; >- else >- return 0.0; >+ return (fValue >= 0.0 ? 1.0 : -1.0 ); > } > > /* Calculates a QR decomposition with Householder reflection.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 37326
:
46871
| 46872