Date: Thu, 30 Apr 98 11:37:26 EDT From: luoqi@watermarkgroup.com (Luoqi Chen) To: c5666305@comp.polyu.edu.hk, freebsd-current@FreeBSD.ORG Subject: Re: floating porint exception error Message-ID: <9804301537.AA10192@watermarkgroup.com>
next in thread | raw e-mail | index | archive | help
> Hello,
>
> I recent encounter an error which I don't know how to fix it. It is an
> MesaGL/GLUT application which halt at a statement as following:
>
> static int
> func(int n)
> {
> return 0.001 + M_PI / asin((2 * n));
> }
>
> The error is floating point exception (core dump). The same program work
> okay under netbsd 1.3E. However it cannot be run under FreeBSD 2.2.6 and
> break at return 0.001 + ..... Any idea ? Thanks.
>
I am suprised that this ever worked. Basic trigonometry...(hint: |sin(x)|<=1).
>
> Clarence
>
-lq
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9804301537.AA10192>
