You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmath_test.go in math/cmplx has a table called vc26 that isn't used anywhere and never has been.
Does this data serve any purpose? Should tests be added that make use of it, should it be removed, or does it act as documentation? Also, what's the meaning of the variable name?
It can be deleted, but might be useful. I used it originally, when developing the tests, for a 26-significant-figure test vector when calculating expected answers. I didn't want rounding to degrade the accuracy. The comment starting on line 37 explains the procedure.
The test vector for math/all_test.go was called "vf[]", so I called the complex test vector "vc[]"; vc26[] is the version of that test vector fed into the high-precision calculator.
cmath_test.go in math/cmplx has a table called vc26 that isn't used anywhere and never has been.
Does this data serve any purpose? Should tests be added that make use of it, should it be removed, or does it act as documentation? Also, what's the meaning of the variable name?
This came up in https://go-review.googlesource.com/#/c/20913
The table:
/cc @griesemer @bradfitz
The text was updated successfully, but these errors were encountered: