Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NaN error.
12-20-2006, 03:00 PM,
#5
 
I've tried to use:

u = alpha / 0.00001
or
return false

both work.

I've preferred to use "return false" looking at other code, like:
Code:
        if (D < 0) return false;
        float Q = (-0.5) * (B + ((B < (0.0) ? (-1.0) : (1.0))
          * std::sqrt(D)));
in the same function.

You know this code much better than me, feel free to modify my solution.

pwp71
Reply


Messages In This Thread
NaN error. - by pwp71 - 11-30-2006, 07:14 PM
[No subject] - by thelusiv - 11-30-2006, 08:30 PM
[No subject] - by pwp71 - 12-19-2006, 07:41 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-19-2006, 09:40 PM
[No subject] - by pwp71 - 12-20-2006, 03:00 PM
[No subject] - by thelusiv - 12-21-2006, 08:59 AM
[No subject] - by pwp71 - 12-27-2006, 05:27 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-27-2006, 08:22 PM
[No subject] - by pwp71 - 12-28-2006, 11:21 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-28-2006, 07:15 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-28-2006, 09:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)