Recent

Author Topic: SIGSEGV Exception in arccos function  (Read 6981 times)

Leymarie

  • Newbie
  • Posts: 3
SIGSEGV Exception in arccos function
« on: October 03, 2007, 06:15:45 pm »
Hello,

I’m working since 2 weeks to convert an Delphi simulation program into Lazarus to work on a Linux platform. After 2 weeks, the code is compiled on the Linux platform but I had some problem with the arccos function of the math unit.

Arccos(0.5) return : External SIGSEGV Exception !!! and arccos(0.499) works

The arccos function should works on the -1,1 segment !!!

People could help me ?

thanks

antonio

  • Hero Member
  • *****
  • Posts: 605
RE: SIGSEGV Exception in arccos function
« Reply #1 on: October 03, 2007, 07:58:36 pm »
Is unit Math platform specific? I can't reproduce that on WinXP.

Leymarie

  • Newbie
  • Posts: 3
RE: SIGSEGV Exception in arccos function
« Reply #2 on: October 04, 2007, 09:58:05 am »
Hi,

Thank you for your response. I have also no problem on W2k ...

On my Linux plateform the arccos function give the right value from -0.4999 to 0.4999 but I have always a problem above 0.5.

I tried directly arccos(0.5) or by using a variable

temp:=0.5;
arccos(temp); with temp define as single, double, real or extended. there is no difference ... always the same
SIGSEGV exception

thanks in advance for your help

Leymarie

  • Newbie
  • Posts: 3
RE: SIGSEGV Exception in arccos function
« Reply #3 on: October 04, 2007, 10:13:18 am »
a new information is, on my linux platform
arccos(1.1) return Invalid argument exception wich is normal for arccos function

so, this function read the argument in a proper way ...

 

TinyPortal © 2005-2018