View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006703 | JEDI Code Library | JclMath | public | 2020-08-09 10:59 | 2020-08-09 10:59 |
Reporter | mh | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0006703: Results from JclMath.ArcSec and System.Math.ArcSec differ | ||||
Description | I added a unit test as shown via steps below and when running it I get a huge difference of the values calculated by JclMath and System.Math. Looking at the implementation of both functions I see they quite differ mathematically. Result of the test run: expected: <1,8247742815658> but was: <1,31681837202399> | ||||
Steps To Reproduce | Add the following implementation of a DUnit unit test to TestJCLMath.pas from qa\automated\dunit\unit and run it. procedure TMathTranscendentalTest._ArcSec; var x: Extended; begin x := -3.98; while x < -1 do begin CheckEquals(Math.ArcSec(X), JclMath.ArcSec(X), PrecisionTolerance); x := x + 0.1; end; x := 1.00; while x < 4 do begin CheckEquals(Math.ArcSec(X), JclMath.ArcSec(X), PrecisionTolerance); x := x + 0.1; end; end; | ||||
Additional Information | I selected IDE version 10.3 as 10.4 is not available in the list. | ||||
Tags | No tags attached. | ||||
Fixed in GIT commit | |||||
Fixed in SVN revision | |||||
IDE version | 10.3 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2020-08-09 10:59 | mh | New Issue |