Test suite results for test file webtbs/tw1592.pp

Test run data :

Run ID:
Operating system: linux
Processor: i386
Version: 3.3.1
Fails/OK/Total: 240/9415/9655
Version: 3.3.1
Full version: 3.3.1-15584-g2f9ed0576e
Comment: -XR/home/muller/sys-root/i386-linux -Xd -Xr/home/muller/sys-root/i386-linux
Machine: cfarm421
Category: 1
SVN revisions: 2f9ed0576e:8b7dbb81b1:3f8bbd3b00:2f9ed0576e
Submitter: muller
Date: 2024/04/19 11:07:00 <> 2024/04/18
Previous run: 934323
Next run: 935660

Hide skipped tests

Hide successful 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:

tr_idruntr_oktr_skiptr_result
443679678934969TrueFalseSuccessfully run

Record count: 1

No log of 934969.

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.