Hi,
@interact
def f(n=(100,(1,100000))):
def tossing():
return 1 if random() > 0.5 else 0
k=0
for i in range(n):
a = tossing()
b = tossing()
if a == b:
k += 1
print(numerical_approx(k/n))
This fails in SageMathCell but works fine in jupyter notebook. What does this reveal?
(1) This is a just temporary bug in SageMathCell, and should be fixed by the normal procedure via Trac.
(2) SageMathCell is not maintained as much as Jupyter notebook
(3) There is no test framework for sage interacts like our sage doctest framework
Which are true?
Kwankyu