News for hackers. Stuff that matters.
Re:Floating point error is the least of my worries (2011) by mehrdadn on Wednesday February 21, 2018 @11:09PM (#16435089)
That is not the system being ill-conditioned. The system would be well-conditioned. That's just a comparison that is assumed to hold true inside the simulator because it's trying to advance its time to that of the next event. It's internal to the simulation algorithm.
Re:Floating point error is the least of my worries (2011) by conistonwater on Thursday February 22, 2018 @11:18AM (#16438626)
I think it is: your code ends up taking different paths based on the result of a comparison, which is ill-conditioned. The underlying system might be well-conditioned, but the question you are asking about it is not.
Re:Floating point error is the least of my worries (2011) by mehrdadn on Thursday February 22, 2018 @03:48PM (#16441249)
I'm not disputing whether there is an ill-conditioning present here; I am saying that it is not the system that is ill-conditioned or otherwise somehow particularly pathological, and that this is obviously not due to a modeling error. Please consider re-reading my comments since my point is something other than what you are disputing -- you seem to be disputing a point that I was never making.
Re:Floating point error is the least of my worries (2011) by conistonwater on Thursday February 22, 2018 @04:35PM (#16441614)
It is not the system that is ill-conditioned or pathological, nor is it modelling error, I agree. It is the comparison x(t) >= h that is ill-conditioned, and you'd be wrong to rely on its result (much like catastrophic cancellation, it is a bad idea to compare approximately equal numbers with errors in them, no matter where the errors come from—the errors could come from measurements, and the same logic would apply). We might have different ideas about what in your example is specified as given (with full precision) and what is specified approximately? But I do not think I misunderstood anything you wrote, please consider re-reading my comments too.