Test suite results for test file webtbs/tw1592.pp

Test run data :

Free Pascal Compiler Test Suite Results

View Test suite results

Please specify search criteria:
File:
Operating system:
Processor:
Version
Date
Submitter
Machine
Comment
Limit
Cond
Category
Only failed tests
Hide skipped tests
List all tests

Test file "webtbs/tw1592.pp" information:

t_id 831
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Successfully run 50 100.0 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24
i386 5 10.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
m68k 1 2.0 2024/10/19 07:29:00 50 2024/10/19 07:29:00 50
sparc 3 6.0 2024/10/19 08:05:00 45 2024/10/19 11:16:00 40
powerpc 5 10.0 2024/10/19 10:03:00 203 2024/10/19 13:26:00 65
arm 2 4.0 2024/10/19 09:36:00 32 2024/10/19 10:03:00 32
x86_64 11 22.0 2024/10/19 08:27:00 30 2024/10/19 13:36:00 24
powerpc64 8 16.0 2024/10/19 08:51:00 46 2024/10/19 10:59:00 68
mips 2 4.0 2024/10/19 09:54:00 35 2024/10/19 10:28:00 38
mipsel 2 4.0 2024/10/19 09:59:00 38 2024/10/19 10:35:00 142
aarch64 4 8.0 2024/10/19 08:51:00 34 2024/10/19 09:57:00 26
sparc64 4 8.0 2024/10/19 08:33:00 120 2024/10/19 11:33:00 117
riscv64 1 2.0 2024/10/19 11:10:00 26 2024/10/19 11:10:00 26
loongarch64 2 4.0 2024/10/19 09:45:00 25 2024/10/19 10:17:00 30
linux 33 66.0 2024/10/19 07:29:00 50 2024/10/19 11:38:00 25
go32v2 3 6.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
solaris 8 16.0 2024/10/19 13:22:00 24 2024/10/19 13:36:00 24
aix 6 12.0 2024/10/19 10:06:00 62 2024/10/19 13:26:00 65
3.3.1 31 62.0 2024/10/19 08:05:00 45 2024/10/19 13:26:00 65
3.2.3 19 38.0 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24

Source:

{ Source provided for Free Pascal Bug Report 1592 }
{ Submitted by "Guenther Palfinger" on  2001-08-23 }
{ e-mail: guenther.palfinger@gmx.net }
Program ShowBug;                                          (* 2001-08-23 *)

var L,R,A,B,Z1,tmp : real;

function arccos(x: real): real;
var y : real;
begin
   (*  gdb gives the following message for next line:
    *  "Program received signal SIGFPE, Arithmetic exception." *)
   writeln(x);
   if abs(x) > 1.0 then writeln(' error arccos(x), x = ',x:7:3);
   if abs(x) > 0.0 then y := arctan(sqrt(1.0-x*x)/abs(x))
   else y := pi/2.0;
   if x < 0.0 then y := pi - y;
   arccos := y;
end;

function arcsin(x: real): real;
begin
   arcsin := pi/2.0 - arccos(x);
end;

begin
   L := 5.2631578947368425;
   R := 3.6315789473684212;
   A := 39.88919667590028;
   B := 15.512465373961222;
   (* Behaves OK *)
   tmp :=  1/(pi*R)*(ArcCos(B/A) - 1/(2*L)*(sqrt((A+2)*(A+2)-2*R*R)*ArcCos(B/(R*A)) + B*ArcSin(1/R) ));
   writeln ('tmp = ', tmp);
   (* OK *)
   writeln('1/R-tmp = ', 1/R-tmp);
   (* Next line causes FPE at run time, althogh it is the same as previous line *)
   Z1 := 1/R-  1/(pi*R)*(ArcCos(B/A) - 1/(2*L)*(sqrt((A+2)*(A+2)-2*R*R)*ArcCos(B/(R*A)) + B*ArcSin(1/R) ));
end.

Link to SVN view of webtbs/tw1592.pp source.