asdas

Ruby code posted by asfd
created at 23 Nov 14:08

Edit | Back
1
2
3
4
5
6
7
8
9
10
x = 0.5
c_values = [1.0, 1.25, 1.5, 1.75, 2.0, 2.25, 2.5, 2.75, 3.0, 3.25, 3.75]
c_values.each { |c|
  temp=0
  100000.times { 
    temp = x
    x = c* x * (1-x)
  }
  puts "c=#{c} \t:\t x=#{x} :\t prevx=#{temp}" 
}
216 Bytes in 2 ms with coderay