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

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-cell+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cell/efbd8a93-b822-4d3d-b1df-217e4f537d0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to