Ask Your Question

Brionur's profile - activity

2011-10-11 16:39:53 -0600 received badge  Student (source)
2011-10-11 16:39:48 -0600 received badge  Nice Answer (source)
2011-10-11 15:19:46 -0600 received badge  Teacher (source)
2011-10-11 15:19:46 -0600 received badge  Self-Learner (source)
2011-10-11 07:50:02 -0600 answered a question Counting number of trues in a 1000 line answer

3) Approximately 120/1000(Depending on the randomization)

var('x')
x=0
for y in range (1000):
    F=matrix([[randint(0,1) for i in range(1,11)] for j in range(1,11)])
    if (F.echelon_form()==identity_matrix(10)):
        x=x+1
show(x/1000)
2011-10-11 07:29:58 -0600 asked a question Counting number of trues in a 1000 line answer
for y in range (1000):
    F=matrix([[randint(0,1) for i in range(1,11)] for j in range(1,11)])
    F.echelon_form()==identity_matrix(10)

I need help with this formula! We are supposed to find the number of outputted Trues in this statement. Either a percent answer or just the number true out of 1000 would be awesome!

I'm not very well versed in this programming language and any help with a description would be great!!