M
Marek
When I try use function atan2 form MathFP 2.0.5 or 2.0.5 I receive strange
result.
Below you can see test result form C(BC++5.5.1, and Delphi) and java(jdk
1.4)
MathFP:
atan2(toFP(1), toFP(1)) = 0.78539
atan2(toFP(1), toFP(-2)) = 2.67795 <- difference
atan2(toFP(-1), toFP(1)) =-0.78539
atan2(toFP(-1), toFP(-1)) =-2.35619 <- difference
C++/Delphi:
atan2(1, 1) = 0.7854
atan2(1, -2) = -3.6054 <- difference
atan2(-1, 1) = -0.7854
atan2(-1, -1) = -3.9270 <- difference
Can you tell me why? What I do wrong?
Irek
result.
Below you can see test result form C(BC++5.5.1, and Delphi) and java(jdk
1.4)
MathFP:
atan2(toFP(1), toFP(1)) = 0.78539
atan2(toFP(1), toFP(-2)) = 2.67795 <- difference
atan2(toFP(-1), toFP(1)) =-0.78539
atan2(toFP(-1), toFP(-1)) =-2.35619 <- difference
C++/Delphi:
atan2(1, 1) = 0.7854
atan2(1, -2) = -3.6054 <- difference
atan2(-1, 1) = -0.7854
atan2(-1, -1) = -3.9270 <- difference
Can you tell me why? What I do wrong?
Irek