Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Asynchronous inputs are at the root of our race problems. -- D. Winker and F. Prosser


tech / sci.electronics.design / Re: 0.0 / 0.0 = -NAN ?

SubjectAuthor
o Re: 0.0 / 0.0 = -NAN ?legg

1
Re: 0.0 / 0.0 = -NAN ?

<l3kv6hlh40t980q9te6r6rgbvni9env4rv@4ax.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=96001&group=sci.electronics.design#96001

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: leg...@nospam.magma.ca (legg)
Newsgroups: sci.electronics.design
Subject: Re: 0.0 / 0.0 = -NAN ?
Date: Mon, 02 May 2022 08:38:50 -0400
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <l3kv6hlh40t980q9te6r6rgbvni9env4rv@4ax.com>
References: <85f22bc1-17c7-46d9-b933-4c6238863740n@googlegroups.com> <767d7783-cdd7-4b0b-a202-e98a2c0f200an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="277eff9551fea7521fd2e9fd752b0848";
logging-data="1688"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19j5oZzRDorrazkEk5DWlHL"
Cancel-Lock: sha1:MQv4aAA255J8OoX5lA+0Kq29qUM=
X-Newsreader: Forte Agent 4.2/32.1118
 by: legg - Mon, 2 May 2022 12:38 UTC

On Sun, 1 May 2022 19:23:10 -0700 (PDT), Skybuck Flying
<skybuckflying@gmail.com> wrote:

>I discovered another dangerous one while trying to compute overlap of interval (basically ranges) and/or trying to clip/cap line segments:
>
>0 * +infinity = -NAN
>
>This happens as the ray is on the edge of a boundary/box... cause tMinX will become -NAN.
>
>Leading to weird situations depending on how the code was written, either the wrong point will be taken or it will not clip at all.
>
>Once intersection segment with ray and box has been calculated, the ray segment has to be checked against the interestion segment to check if it overlaps... it's still possible it does not overlap.. for a "ray segment box intersection" algorithm. Analog to "line triangle intersection" algorithm, first "line plane intersection" then check if intersection point lies inside triangle which lies inside the plane.
>
>I have seen some papers that try and work around these issues at least for ray/box intersection, but if these tricks work for ray segment box intersection remains to be seen.
>
>Anyway best way to solve it is to use custom code for when delta x, y, or z is zero... instead of trying to divide or multiply by zero and infinity and such things cause certain combinations can lead to -NAN problems. Also win32 and win64 behave differently in delphi somewhat... perhaps 0 * infinity produces something else in win64... not yet sure...
>
>It's in my video which I will upload shortly... hmmm...
>
>Anyway... I am leaving math hell for now... leaving fpu hell... and returning back to the surface ! =D
>
>This guy has an interesting take on it, basically saying 0 * infinity is the inverted case as 0 / 0, same kind of problem ! =D
>
>https://math.stackexchange.com/questions/698690/when-0-is-multiplied-with-infinity-what-is-the-result
>
>"
>What I would say is that you can multiply any non-zero number by infinity and get either infinity or negative infinity as long as it isn't used in any mathematical proof. Because multiplying by infinity is the equivalent of dividing by 0. When you allow things like that in proofs you end up with nonsense like 1 = 0. Multiplying 0 by infinity is the equivalent of 0/0 which is undefined. –
>PHP Guru
>"
>
>(Here will be my video: https://youtu.be/lAcneKBJ9zY in case anybody wants to see some math hell in action lol, doubt it :))
>
>Bye,
>Skybuck =D

Two and a half hours?

You need an editor.

RL

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor