09-09-2023, 03:48 PM
Hi DS
I do follow your math and I do understand the points you are making but... in terms of an AI program, where logic is a key element, NaN screws it all up. In my apple math of 3 apples divided by zero, I didn't mean that math to equal NaN but rather equal infinity. So I do understand that if you divide the 3 apples with the numeric value of zero it goes into it an infinite number of times. I can write code which makes sure my math formulas do not divide by zero, so in effect controlling infinity. But NaN is a different story.
You would think it should also be a simple matter of making sure both my numerator and denominator can not be zero at the same time but as you point out, this is not the only condition which leads to a NaN result.
Thanks for the discussion, eases the frustration and gets the thinking cap back on.
I do follow your math and I do understand the points you are making but... in terms of an AI program, where logic is a key element, NaN screws it all up. In my apple math of 3 apples divided by zero, I didn't mean that math to equal NaN but rather equal infinity. So I do understand that if you divide the 3 apples with the numeric value of zero it goes into it an infinite number of times. I can write code which makes sure my math formulas do not divide by zero, so in effect controlling infinity. But NaN is a different story.
You would think it should also be a simple matter of making sure both my numerator and denominator can not be zero at the same time but as you point out, this is not the only condition which leads to a NaN result.
Thanks for the discussion, eases the frustration and gets the thinking cap back on.