On Thu, 13 Nov 2008, Garth Dahlstrom wrote:
> The solution I was thinking about was set price to be "very small double
> with a value approaching 0", but I'll defer it to Albert who may have more
> experience representing infinity thanks to his background in Physics ....

I think a divide by zero is actually 'undefined' rather than 'infinity'. In 
IEEE terms, you get NaN rather than Inf.

The hackier solution would be to add a small delta $d$ to price $p$:
$\frac{1}{(1+c)*(p+d)}$
a better solution would be to redefine your equation such that it doesn't come 
up. If somebody wants to write my thesis for me, I'd be happy to do this. 
This is also why I'm sitting on Herc control MP3 driver testing :(

-- 
Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to