mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 17:19:33 +02:00
no message
This commit is contained in:
parent
63f6eeb35a
commit
4c4e347d5f
32
tests/webtbs/tw2452.pp
Normal file
32
tests/webtbs/tw2452.pp
Normal file
@ -0,0 +1,32 @@
|
||||
{ Source provided for Free Pascal Bug Report 2452 }
|
||||
{ Submitted by "Nikolay Nikolov" on 2003-04-06 }
|
||||
{ e-mail: nickysn1983@netscape.net }
|
||||
Program Test;
|
||||
|
||||
Uses
|
||||
Math;
|
||||
|
||||
procedure error;
|
||||
begin
|
||||
writeln('error');
|
||||
halt(1);
|
||||
end;
|
||||
|
||||
var
|
||||
s : string;
|
||||
|
||||
Begin
|
||||
{ allow a small error }
|
||||
if abs(arctan2(1,1)-7.8539816339744831E-0001)>4.0E-0019 then
|
||||
error;
|
||||
if arctan2(0, 1)<>0.0 then
|
||||
error;
|
||||
{ allow a small error }
|
||||
if abs(arctan2(1, 0)-1.5707963267948966E+0000)>2.0E-0017 then
|
||||
error;
|
||||
{ allow a small error }
|
||||
if abs(arctan2(-1, 0)+1.5707963267948966E+0000)>2.0E-0017 then
|
||||
error;
|
||||
if arctan2(0, 0)<>0.0 then
|
||||
error;
|
||||
End.
|
Loading…
Reference in New Issue
Block a user