Hi,
I am reading "Infinite Powers-Steven Strogatz" and I was able to explain to my 13 year old nephew how to understand infinity. Here is the explanation of Steven Strogatz:
And I wanted to quickly show that in Snap! For that I wrote a program: Snap! Build Your Own Blocks
Snap program:
Quick output from snap:
To replicate the same thing, if my minimum number is min, and I am able to get "infinity" when I calculate 1/min, that would have served my purpose. But, I see the the approximate minimum(min) in Snap! as 1e-9, so 1/min can never be infinity.
Any thoughts are welcome?
Thanks a lot!
Nisar
PS: This is what python says:
Wouldn't you get ZeroDivisionError there? I don't understand how you're not getting an error. I just realized before is bigger than f, that's why.
Edit:
Python 3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> f = 1.0
>>> while f:
before = f
f = f/10.0
>>> before
1e-323
>>> 1/before
inf
>>>
I got the same result as you. But:
>>> 1/0
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
1/0
ZeroDivisionError: division by zero
>>>
Thank you very much! I never knew about "variable watchers" rounding and also the other way around(double clicking) to get the value of the variable...